MCPcopy Index your code
hub / github.com/angular-ui/ui-router / identifierForController

Function identifierForController

test/angular/1.5/angular.js:10440–10446  ·  view source on GitHub ↗
(controller, ident)

Source from the content-addressed store, hash-verified

10438
10439var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
10440function identifierForController(controller, ident) {
10441 if (ident && isString(ident)) return ident;
10442 if (isString(controller)) {
10443 var match = CNTRL_REG.exec(controller);
10444 if (match) return match[3];
10445 }
10446}
10447
10448
10449/**

Callers 1

factoryFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected