go() returns a promise.

from the wiki:

Returns
{promise} – A promise representing the state of the new transition. Possible success values:
$state.current
This commit is contained in:
ofirgeller
2014-04-05 11:32:32 +03:00
parent 097542cd03
commit c663be4f3c
+1 -1
View File
@@ -73,7 +73,7 @@ declare module ng.ui {
}
interface IStateService {
go(to: string, params?: {}, options?: IStateOptions): void;
go(to: string, params?: {}, options?: IStateOptions): IPromise<any>;
transitionTo(state: string, params?: {}, updateLocation?: boolean): void;
transitionTo(state: string, params?: {}, options?: IStateOptions): void;
includes(state: string, params?: {}): boolean;