MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / ngDirective

Function ngDirective

web/static/bower_components/angular/angular.js:19510–19518  ·  view source on GitHub ↗
(directive)

Source from the content-addressed store, hash-verified

19508}
19509
19510function ngDirective(directive) {
19511 if (isFunction(directive)) {
19512 directive = {
19513 link: directive
19514 };
19515 }
19516 directive.restrict = directive.restrict || 'AC';
19517 return valueFn(directive);
19518}
19519
19520/**
19521 * @ngdoc directive

Callers 1

angular.jsFile · 0.85

Calls 2

isFunctionFunction · 0.85
valueFnFunction · 0.85

Tested by

no test coverage detected