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

Function identifierForController

test/angular/1.7/angular.js:11575–11581  ·  view source on GitHub ↗
(controller, ident)

Source from the content-addressed store, hash-verified

11573
11574var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
11575function identifierForController(controller, ident) {
11576 if (ident && isString(ident)) return ident;
11577 if (isString(controller)) {
11578 var match = CNTRL_REG.exec(controller);
11579 if (match) return match[3];
11580 }
11581}
11582
11583
11584/**

Callers 1

factoryFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected