From ffd4f06ab7e77ecd9cd50cd1600a3c45412ec7af Mon Sep 17 00:00:00 2001 From: Eric Mendes Dantas Date: Fri, 11 Sep 2015 07:47:15 -0300 Subject: [PATCH] Adding lifecycle breaking change to the changelog.md --- CHANGELOG.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b162a466c..ba7275a023 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,21 +34,64 @@ ### BREAKING CHANGES +#### Events + * Before -``` +```html
``` -After -``` + +* After + +```html
``` +#### Lifecycle +* Before + +```js +import {Component, View, LifecycleEvent} from 'angular2/angular2'; + +@Component({ + selector: 'hello-cmp', + lifecycle: [LifecycleEvent.onInit] +}) +@View({ + template: `

hello, there!

` +}) + +class HelloCmp { + onInit() { + console.log('hello-cmp init'); + } +} +``` + +* After + +```js +import {Component, View, OnInit} from 'angular2/angular2'; + +@Component({ + selector: 'hello-cmp' +}) +@View({ + template: `

hello, there!

` +}) + +class HelloCmp implements OnInit { + onInit() { + console.log('hello-cmp init'); + } +} +``` # 2.0.0-alpha.36 (2015-08-31)