AngularJS Directive not executing -
i have angular directive looks this:
angular.module("module").directive("validategreaterthan", ["angular-underscore", function (_) { "use strict"; console.log("directive works"); return { require: "ngmodel", restrict: 'a', link: function (scope, element, attrs, ngmodel) { console.log("directive works"); } } }]); the markup:
<input placeholder="eg. 10" type="number" name="minutes" required validate-greater-than="0" data-ng-model="settingscontroller.model" /> unfortunately, neither of console logs showing up. idea why? file showing in devtools, it's loading properly, , angular.module("module")._invokequeue correctly shows directive listed.
Comments
Post a Comment