From f1387c2cd4537ad659384d3b30ce42baf6eeffcc Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Thu, 8 Oct 2015 16:03:14 -0500 Subject: [PATCH] Componet -> Component --- ionic/components/nav/nav-controller.ts | 2 +- ionic/components/nav/nav.ts | 14 +++++++------- ionic/components/tabs/tab.ts | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ionic/components/nav/nav-controller.ts b/ionic/components/nav/nav-controller.ts index 495381e92e..d1e6d52343 100644 --- a/ionic/components/nav/nav-controller.ts +++ b/ionic/components/nav/nav-controller.ts @@ -505,7 +505,7 @@ export class NavController extends Ion { * @private * TODO */ - createViewComponetRef(type, hostProtoViewRef, viewContainer, viewCtrlBindings) { + createViewComponentRef(type, hostProtoViewRef, viewContainer, viewCtrlBindings) { let bindings = this.bindings.concat(viewCtrlBindings); // the same guts as DynamicComponentLoader.loadNextToLocation diff --git a/ionic/components/nav/nav.ts b/ionic/components/nav/nav.ts index e110d6c813..5aa2b388a9 100644 --- a/ionic/components/nav/nav.ts +++ b/ionic/components/nav/nav.ts @@ -195,11 +195,11 @@ export class Nav extends NavController { // the component being loaded is an // Tabs is essentially a pane, cuz it has its own navbar and content containers let contentContainerRef = this._viewManager.getViewContainer(this.anchorElementRef()); - let viewComponetRef = this.createViewComponetRef(componentType, hostProtoViewRef, contentContainerRef, this.getBindings(viewCtrl)); - viewComponetRef.instance._paneView = true; + let viewComponentRef = this.createViewComponentRef(componentType, hostProtoViewRef, contentContainerRef, this.getBindings(viewCtrl)); + viewComponentRef.instance._paneView = true; viewCtrl.disposals.push(() => { - viewComponetRef.dispose(); + viewComponentRef.dispose(); }); viewCtrl.onReady().then(() => { @@ -210,9 +210,9 @@ export class Nav extends NavController { // normal ion-view going into pane this.getPane(structure, viewCtrl, (pane) => { // add the content of the view into the pane's content area - let viewComponetRef = this.createViewComponetRef(componentType, hostProtoViewRef, pane.contentContainerRef, this.getBindings(viewCtrl)); + let viewComponentRef = this.createViewComponentRef(componentType, hostProtoViewRef, pane.contentContainerRef, this.getBindings(viewCtrl)); viewCtrl.disposals.push(() => { - viewComponetRef.dispose(); + viewComponentRef.dispose(); // remove the pane if there are no view items left pane.totalViews--; @@ -226,10 +226,10 @@ export class Nav extends NavController { // a new ComponentRef has been created // set the ComponentRef's instance to this ViewController - viewCtrl.setInstance(viewComponetRef.instance); + viewCtrl.setInstance(viewComponentRef.instance); // remember the ElementRef to the content that was just created - viewCtrl.viewElementRef(viewComponetRef.location); + viewCtrl.viewElementRef(viewComponentRef.location); // get the NavController's container for navbars, which is // the place this NavController will add each ViewController's navbar diff --git a/ionic/components/tabs/tab.ts b/ionic/components/tabs/tab.ts index d680c7ac0d..2bee3ab38d 100644 --- a/ionic/components/tabs/tab.ts +++ b/ionic/components/tabs/tab.ts @@ -155,17 +155,17 @@ export class Tab extends NavController { loadContainer(componentType, hostProtoViewRef, viewCtrl, done) { - let viewComponetRef = this.createViewComponetRef(componentType, hostProtoViewRef, this.contentContainerRef, this.getBindings(viewCtrl)); + let viewComponentRef = this.createViewComponentRef(componentType, hostProtoViewRef, this.contentContainerRef, this.getBindings(viewCtrl)); viewCtrl.disposals.push(() => { - viewComponetRef.dispose(); + viewComponentRef.dispose(); }); // a new ComponentRef has been created // set the ComponentRef's instance to this ViewController - viewCtrl.setInstance(viewComponetRef.instance); + viewCtrl.setInstance(viewComponentRef.instance); // remember the ElementRef to the content that was just created - viewCtrl.viewElementRef(viewComponetRef.location); + viewCtrl.viewElementRef(viewComponentRef.location); // get the NavController's container for navbars, which is // the place this NavController will add each ViewController's navbar