diff --git a/ionic/components/nav/nav-controller.ts b/ionic/components/nav/nav-controller.ts index 91687b8cd6..af6a879df2 100644 --- a/ionic/components/nav/nav-controller.ts +++ b/ionic/components/nav/nav-controller.ts @@ -153,13 +153,13 @@ export class NavController extends Ion { return promise; } + /** - * Set the view stack to reflect the given component classes. - * @param {TODO} components TODO - * @param {TODO} [opts={}] TODO + * Inserts a view into the nav stack at the specified index. + * @param {TODO} componentType TODO + * @param {TODO} index TODO * @returns {Promise} TODO */ - insert(componentType, index) { if (!componentType || index < 0) { return Promise.reject(); @@ -180,6 +180,12 @@ export class NavController extends Ion { this.views.splice(index, 0, viewCtrl); } + /** + * Set the view stack to reflect the given component classes. + * @param {TODO} components TODO + * @param {TODO} [opts={}] TODO + * @returns {Promise} TODO + */ setViews(components, opts = {}) { if (!components || !components.length) { return Promise.resolve();