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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -