* 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)
| 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 |
no outgoing calls
no test coverage detected