From c663be4f3cc881428b72b833ff9ea98e159ef89c Mon Sep 17 00:00:00 2001 From: ofirgeller Date: Sat, 5 Apr 2014 11:32:32 +0300 Subject: [PATCH] go() returns a promise. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit from the wiki: Returns {promise} – A promise representing the state of the new transition. Possible success values: $state.current --- angular-ui/angular-ui-router.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-ui/angular-ui-router.d.ts b/angular-ui/angular-ui-router.d.ts index da3d92e5ec..4f9f8d4531 100644 --- a/angular-ui/angular-ui-router.d.ts +++ b/angular-ui/angular-ui-router.d.ts @@ -73,7 +73,7 @@ declare module ng.ui { } interface IStateService { - go(to: string, params?: {}, options?: IStateOptions): void; + go(to: string, params?: {}, options?: IStateOptions): IPromise; transitionTo(state: string, params?: {}, updateLocation?: boolean): void; transitionTo(state: string, params?: {}, options?: IStateOptions): void; includes(state: string, params?: {}): boolean;