From fc2912487056a357149def2aef7354b2376ae8ae Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 1 Jun 2016 23:08:56 -0400 Subject: [PATCH] chore(changelog): update the beta 7 steps closes #6630 --- CHANGELOG.md | 44 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78b69a83a99..4d0cccb3bde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -113,15 +113,15 @@ Angular has been updated to 2.0.0-rc.1, follow these steps to update Angular. ``` *ngFor="let session of group.sessions" ``` - + 7. Replace all template variables in `virtualScroll`. For example: ``` *virtualItem="#item" ``` - + becomes - + ``` *virtualItem="let item" ``` @@ -133,7 +133,29 @@ Angular has been updated to 2.0.0-rc.1, follow these steps to update Angular. The `getComponent` method of `IonicApp` has been removed. Please use Angular's [ViewChild](https://angular.io/docs/ts/latest/api/core/ViewChild-var.html) instead. -An example (in TypeScript) of getting the `Nav` ViewChild: +For example, the following: + +```html + +``` + +```javascript +import {IonicApp} from 'ionic-angular'; + +@App({ + templateUrl: 'build/app.html' +}) +class MyApp { + constructor(private app: IonicApp) {} + + setPage() { + let nav = this.app.getComponent('nav'); + nav.push(MyPage); + } +} +``` + +Should be changed (in TypeScript) to use the `Nav` ViewChild: ```html @@ -146,10 +168,14 @@ import {Nav} from 'ionic-angular'; @App({ templateUrl: 'build/app.html' }) -class myApp { +class MyApp { @ViewChild(Nav) nav: Nav; - ... + constructor() {} + + setPage() { + this.nav.push(MyPage); + } } ``` @@ -164,8 +190,12 @@ import {ViewChild} from '@angular/core'; nav: new ViewChild('content') } }) -class myApp { +class MyApp { + constructor() {} + setPage() { + this.nav.push(MyPage); + } } ```