Skip to content

Commit

Permalink
chore(changelog): update the beta 7 steps
Browse files Browse the repository at this point in the history
closes #6630
  • Loading branch information
brandyscarney committed Jun 2, 2016
1 parent 839adf8 commit fc29124
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
Expand All @@ -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
<ion-nav id="nav" [root]="rootPage" #content></ion-nav>
```

```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
<ion-nav [root]="rootPage" #content></ion-nav>
Expand All @@ -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);
}
}
```

Expand All @@ -164,8 +190,12 @@ import {ViewChild} from '@angular/core';
nav: new ViewChild('content')
}
})
class myApp {
class MyApp {
constructor() {}

setPage() {
this.nav.push(MyPage);
}
}
```

Expand Down

0 comments on commit fc29124

Please sign in to comment.