blob: 401075a9756af1d98dcf664c3054e0b00943c3e6 [file] [log] [blame]
Matteo Scandolof2c3ed62016-12-15 14:32:50 -08001import {IXosState} from '../../../index';
2export interface IRuntimeStatesService {
3 addState(name: string, state: angular.ui.IState): void;
4}
5
6export 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}