perf(nav): avoid running zone when it is not needed

This commit is contained in:
Manu Mtz.-Almeida
2016-11-07 20:59:48 +01:00
parent bc5cd7f03f
commit be72d39bd9
3 changed files with 35 additions and 17 deletions

View File

@ -452,6 +452,15 @@ export abstract class NavController {
*/
abstract remove(startIndex: number, removeCount?: number, opts?: NavOptions, done?: Function): Promise<any>;
/**
* Removes the specified view controller from the nav stack.
*
* @param {ViewController} [viewController] The viewcontroller to remove.
* @param {object} [opts={}] Any options you want to use pass to transtion.
* @returns {Promise} Returns a promise which is resolved when the transition has completed.
*/
abstract removeView(viewController: ViewController, opts?: NavOptions, done?: Function): Promise<any>;
/**
* Set the root for the current navigation stack.
* @param {Page|ViewController} page The name of the component you want to push on the navigation stack.