blob: bc99a8e0ae6285acb92900b76c0bdbdef2ad3142 [file] [log] [blame]
import {IXosState} from '../../../index';
export interface IRuntimeStatesService {
addState(name: string, state: ng.ui.IState): void;
}
export function RuntimeStates($stateProvider: ng.ui.IStateProvider): ng.IServiceProvider {
this.$get = function($state: ng.ui.IStateService) {
return {
addState: function(name: string, state: IXosState) {
$stateProvider.state(name, state);
}
};
};
return this;
}