feat(core/linker): add SimpleChanges type to lifecycle_hooks to simplify OnChanges signature

Closes #8557
This commit is contained in:
Ward Bell
2016-05-09 15:45:04 -07:00
committed by Misko Hevery
parent 6f3a6a55a0
commit 0a872ffd38
10 changed files with 27 additions and 14 deletions

View File

@ -7,6 +7,7 @@ import {
OnInit,
OnChanges,
SimpleChange,
SimpleChanges,
Type
} from '@angular/core';
import {
@ -248,7 +249,7 @@ class UpgradeNg1ComponentAdapter implements OnInit, OnChanges, DoCheck {
}
}
ngOnChanges(changes: {[name: string]: SimpleChange}) {
ngOnChanges(changes: SimpleChanges) {
for (var name in changes) {
if ((<Object>changes).hasOwnProperty(name)) {
var change: SimpleChange = changes[name];