MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / ngDirective

Function ngDirective

code/songhop/www/lib/angular/angular.js:17612–17620  ·  view source on GitHub ↗
(directive)

Source from the content-addressed store, hash-verified

17610}
17611
17612function ngDirective(directive) {
17613 if (isFunction(directive)) {
17614 directive = {
17615 link: directive
17616 };
17617 }
17618 directive.restrict = directive.restrict || 'AC';
17619 return valueFn(directive);
17620}
17621
17622/**
17623 * @ngdoc directive

Callers 1

angular.jsFile · 0.70

Calls 2

isFunctionFunction · 0.70
valueFnFunction · 0.70

Tested by

no test coverage detected