MCPcopy Create free account
hub / github.com/aosabook/500lines / ngDirective

Function ngDirective

spreadsheet/code/lib/angular.js:17361–17369  ·  view source on GitHub ↗
(directive)

Source from the content-addressed store, hash-verified

17359}
17360
17361function ngDirective(directive) {
17362 if (isFunction(directive)) {
17363 directive = {
17364 link: directive
17365 };
17366 }
17367 directive.restrict = directive.restrict || 'AC';
17368 return valueFn(directive);
17369}
17370
17371/**
17372 * @ngdoc directive

Callers 1

angular.jsFile · 0.85

Calls 2

isFunctionFunction · 0.85
valueFnFunction · 0.85

Tested by

no test coverage detected