Created
March 30, 2019 20:17
-
-
Save pankajparkar/20a7fecba387d2669c096b3076078aed to your computer and use it in GitHub Desktop.
Require option in directive API demo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.directive('myDirective', function () { | |
return { | |
restrict: 'AECM', | |
require: 'ngModel', | |
link: function (scope, element, attrs, ctrl) { | |
console.log('ngModelController', ctrl) | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment