MCPcopy Create free account
hub / github.com/angular-ui/ui-router / ngDirective

Function ngDirective

test/angular/1.5/angular.js:22158–22166  ·  view source on GitHub ↗
(directive)

Source from the content-addressed store, hash-verified

22156}
22157
22158function ngDirective(directive) {
22159 if (isFunction(directive)) {
22160 directive = {
22161 link: directive
22162 };
22163 }
22164 directive.restrict = directive.restrict || 'AC';
22165 return valueFn(directive);
22166}
22167
22168/**
22169 * @ngdoc directive

Callers 1

angular.jsFile · 0.70

Calls 2

isFunctionFunction · 0.70
valueFnFunction · 0.70

Tested by

no test coverage detected