MCPcopy
hub / github.com/angular-ui/ui-router / identifierForController

Function identifierForController

test/angular/1.6/angular.js:10988–10994  ·  view source on GitHub ↗
(controller, ident)

Source from the content-addressed store, hash-verified

10986
10987var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
10988function identifierForController(controller, ident) {
10989 if (ident && isString(ident)) return ident;
10990 if (isString(controller)) {
10991 var match = CNTRL_REG.exec(controller);
10992 if (match) return match[3];
10993 }
10994}
10995
10996
10997/**

Callers 1

factoryFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected