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)