Skip to content

Commit

Permalink
chore(changelog): update the steps to include the install command
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Jun 8, 2016
1 parent f16a443 commit 1570d2b
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,21 @@ All Ionic component events have been renamed to start with `ion`. This is to pre

#### Steps to Upgrade to Beta 8

1. Replace all instances of `@Page` with `@Component`:
1. Upgrade to `Beta 8` by running the following command:

```
npm install --save [email protected]
```

_or_ modify the following line to use `beta.8` in your `package.json` and then run `npm install`:

```
"ionic-angular": "^2.0.0-beta.8",
```

**This is the way to update Ionic to any version, more information can be found in the [docs](http://ionicframework.com/docs/v2/resources/using-npm/).**

2. Replace all instances of `@Page` with `@Component`:

```
import {Page} from 'ionic-angular';
Expand All @@ -103,7 +117,7 @@ All Ionic component events have been renamed to start with `ion`. This is to pre
})
```

2. Replace `@App` with `@Component` and then bootstrap it. Move any `config` properties into the bootstrap:
3. Replace `@App` with `@Component` and then bootstrap it. Move any `config` properties into the bootstrap:

```
import {App, Platform} from 'ionic-angular';
Expand Down Expand Up @@ -142,7 +156,7 @@ All Ionic component events have been renamed to start with `ion`. This is to pre
});
```

3. Rename any uses of `IonicApp` to `App`:
4. Rename any uses of `IonicApp` to `App`:

```
import {IonicApp} from 'ionic-angular';
Expand All @@ -162,7 +176,7 @@ All Ionic component events have been renamed to start with `ion`. This is to pre
) {
```

4. Rename any uses of the lifecycle events, for example:
5. Rename any uses of the lifecycle events, for example:

```
onPageDidEnter() {
Expand All @@ -180,7 +194,7 @@ All Ionic component events have been renamed to start with `ion`. This is to pre

The full list of lifecycle name changes is in the [section above](https://github.com/driftyco/ionic/blob/2.0/CHANGELOG.md#ionic-lifecycle-events-renamed).

5. Rename any Ionic events, for example:
6. Rename any Ionic events, for example:

```
<ion-slides (slideChangeStart)="onSlideChangeStart($event)">
Expand Down

0 comments on commit 1570d2b

Please sign in to comment.