Matteo Scandolo | f2c3ed6 | 2016-12-15 14:32:50 -0800 | [diff] [blame] | 1 | import {IXosState} from '../../../index'; |
| 2 | export interface IRuntimeStatesService { |
| 3 | addState(name: string, state: angular.ui.IState): void; |
| 4 | } |
| 5 | |
| 6 | export function RuntimeStates($stateProvider: angular.ui.IStateProvider): angular.IServiceProvider { |
| 7 | this.$get = function($state: angular.ui.IStateService) { // for example |
| 8 | return { |
| 9 | addState: function(name: string, state: IXosState) { |
| 10 | $stateProvider.state(name, state); |
| 11 | } |
| 12 | }; |
| 13 | }; |
| 14 | return this; |
| 15 | } |