refactor(LifecycleEvent): change from onInit to Lifecycle.onInit
BREAKING CHANGE Closes #2928
This commit is contained in:
committed by
Tobias Bosch
parent
e1e7912ab2
commit
b73ba68215
+1
-5
@@ -8,11 +8,7 @@ import 'package:angular2/angular2.dart'
|
||||
Directive,
|
||||
View,
|
||||
NgElement,
|
||||
onChange,
|
||||
onDestroy,
|
||||
onInit,
|
||||
onCheck,
|
||||
onAllChangesDone;
|
||||
LifecycleEvent;
|
||||
|
||||
var _visited = false;
|
||||
void initReflector(reflector) {
|
||||
|
||||
+1
-5
@@ -8,11 +8,7 @@ import 'package:angular2/angular2.dart'
|
||||
Directive,
|
||||
View,
|
||||
NgElement,
|
||||
onChange,
|
||||
onDestroy,
|
||||
onInit,
|
||||
onCheck,
|
||||
onAllChangesDone;
|
||||
LifecycleEvent;
|
||||
|
||||
var _visited = false;
|
||||
void initReflector(reflector) {
|
||||
|
||||
+1
-5
@@ -8,11 +8,7 @@ import 'package:angular2/angular2.dart'
|
||||
Directive,
|
||||
View,
|
||||
NgElement,
|
||||
onChange,
|
||||
onDestroy,
|
||||
onInit,
|
||||
onCheck,
|
||||
onAllChangesDone;
|
||||
LifecycleEvent;
|
||||
|
||||
var _visited = false;
|
||||
void initReflector(reflector) {
|
||||
|
||||
+3
-6
@@ -8,11 +8,7 @@ import 'package:angular2/angular2.dart'
|
||||
Directive,
|
||||
View,
|
||||
NgElement,
|
||||
onChange,
|
||||
onDestroy,
|
||||
onInit,
|
||||
onCheck,
|
||||
onAllChangesDone;
|
||||
LifecycleEvent;
|
||||
|
||||
var _visited = false;
|
||||
void initReflector(reflector) {
|
||||
@@ -24,7 +20,8 @@ void initReflector(reflector) {
|
||||
'parameters': const [const []],
|
||||
'annotations': const [
|
||||
const Component(
|
||||
lifecycle: [onChange, onDestroy, onInit, onCheck, onAllChangesDone])
|
||||
lifecycle: [LifecycleEvent.onChange, LifecycleEvent.onDestroy, LifecycleEvent.onInit,
|
||||
LifecycleEvent.onCheck, LifecycleEvent.onAllChangesDone])
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user