MCPcopy Create free account
hub / github.com/binux/qiandao / ngDirective

Function ngDirective

web/static/components/angularjs/angular.js:15572–15580  ·  view source on GitHub ↗
(directive)

Source from the content-addressed store, hash-verified

15570}
15571
15572function ngDirective(directive) {
15573 if (isFunction(directive)) {
15574 directive = {
15575 link: directive
15576 };
15577 }
15578 directive.restrict = directive.restrict || 'AC';
15579 return valueFn(directive);
15580}
15581
15582/**
15583 * @ngdoc directive

Callers 1

angular.jsFile · 0.85

Calls 2

valueFnFunction · 0.85
isFunctionFunction · 0.70

Tested by

no test coverage detected