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

Method decorator

src/stateProvider.ts:123–125  ·  view source on GitHub ↗

* Decorates states when they are registered * * Allows you to extend (carefully) or override (at your own peril) the * `stateBuilder` object used internally by [[StateRegistry]]. * This can be used to add custom functionality to ui-router, * for example inferring templateUrl based on

(name: string, func: BuilderFunction)

Source from the content-addressed store, hash-verified

121 * @return {object} $stateProvider - $stateProvider instance
122 */
123 decorator(name: string, func: BuilderFunction) {
124 return this.stateRegistry.decorator(name, func) || this;
125 }
126
127 /**
128 * Registers a state

Callers 13

stateSpec.tsFile · 0.80
viewScrollSpec.tsFile · 0.80
angular-mocks.jsFile · 0.80
angular-mocks.jsFile · 0.80
angular-mocks.jsFile · 0.80
angular-animate.jsFile · 0.80
angular-mocks.jsFile · 0.80
angular-animate.jsFile · 0.80
angular-mocks.jsFile · 0.80
angular-mocks.jsFile · 0.80
testUtilsNg1.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected