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

Function identifierForController

test/angular/1.4/angular.js:9314–9320  ·  view source on GitHub ↗
(controller, ident)

Source from the content-addressed store, hash-verified

9312
9313var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
9314function identifierForController(controller, ident) {
9315 if (ident && isString(ident)) return ident;
9316 if (isString(controller)) {
9317 var match = CNTRL_REG.exec(controller);
9318 if (match) return match[3];
9319 }
9320}
9321
9322
9323/**

Callers 1

parseDirectiveBindingsFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected