mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
chore(CHANGELOG): add steps for renaming the lifecycle and events beta 8
This commit is contained in:
32
CHANGELOG.md
32
CHANGELOG.md
@ -158,6 +158,38 @@ 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:
|
||||||
|
|
||||||
|
```
|
||||||
|
onPageDidEnter() {
|
||||||
|
console.log("Entered page!");
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
becomes
|
||||||
|
|
||||||
|
```
|
||||||
|
ionViewDidEnter() {
|
||||||
|
console.log("Entered page!");
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
```
|
||||||
|
<ion-slides (slideChangeStart)="onSlideChangeStart($event)">
|
||||||
|
```
|
||||||
|
|
||||||
|
becomes
|
||||||
|
|
||||||
|
```
|
||||||
|
<ion-slides (ionWillChange)="onSlideChangeStart($event)">
|
||||||
|
```
|
||||||
|
|
||||||
|
The full list of event name changes is in the [section above](https://github.com/driftyco/ionic/blob/2.0/CHANGELOG.md#ionic-component-events-renamed).
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* **build:** correct link in output.wp.scss file to old ionic directory. ([6113daf](https://github.com/driftyco/ionic/commit/6113daf))
|
* **build:** correct link in output.wp.scss file to old ionic directory. ([6113daf](https://github.com/driftyco/ionic/commit/6113daf))
|
||||||
|
Reference in New Issue
Block a user