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

Function identifierForController

lib/test/angular/1.4.3/angular.js:8868–8874  ·  view source on GitHub ↗
(controller, ident)

Source from the content-addressed store, hash-verified

8866
8867var CNTRL_REG = /^(\S+)(\s+as\s+(\w+))?$/;
8868function identifierForController(controller, ident) {
8869 if (ident && isString(ident)) return ident;
8870 if (isString(controller)) {
8871 var match = CNTRL_REG.exec(controller);
8872 if (match) return match[3];
8873 }
8874}
8875
8876
8877/**

Callers 1

parseDirectiveBindingsFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected