Controller 'ngModel', required by directive '…', can't be found
What's going on here? Here are my directives: // template <input ng-model="theModel" /> app.directive('bseInput', function () { return { templateUrl: "/Scripts/bse/bse-inputs.html", scope: { theModel: '=', }, compile: function compile(tElement, tAttrs, transclude) { // do stuff } }; }); app.directive('submitRequired', function (objSvc) { return { require: 'ngModel', link: function (scope, elm, attrs, ctrl) { // do something } }; }); Here is an example of the directive in use: <input bse-input submit-required="true" the-model="someModel"></input> Here is the actual error text: Error: [$compile