Missing deferIntercept in angular-ui-router.

Added definition for IUrlRouterProvider.deferIntercept in angular-ui-router.
Docs: http://angular-ui.github.io/ui-router/site/#/api/ui.router.router.$urlRouterProvider
This commit is contained in:
Dan Lewi Harkestad
2015-08-04 14:05:40 +02:00
parent 41a0dd35a6
commit c1b2c0c40d
+8
View File
@@ -114,6 +114,14 @@ declare module angular.ui {
otherwise(path: string): IUrlRouterProvider;
rule(handler: Function): IUrlRouterProvider;
rule(handler: any[]): IUrlRouterProvider;
/**
* Disables (or enables) deferring location change interception.
*
* If you wish to customize the behavior of syncing the URL (for example, if you wish to defer a transition but maintain the current URL), call this method at configuration time. Then, at run time, call $urlRouter.listen() after you have configured your own $locationChangeSuccess event handler.
*
* @param {boolean} defer Indicates whether to defer location change interception. Passing no parameter is equivalent to true.
*/
deferIntercept(defer?: boolean): void;
}
interface IStateOptions {