Skip to content

Commit 3d7ce44

Browse files
fix(uiView): Fix animations :enter trigger by using markForCheck
Closes #165
1 parent e7cb5f1 commit 3d7ce44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/directives/uiView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ export class UIView {
197197
trace.traceUIViewConfigUpdated(this._uiViewData, config && config.viewDecl.$context);
198198

199199
this._applyUpdatedConfig(config);
200+
201+
// Initiate change detection for the newly created component
202+
this._componentRef.changeDetectorRef.markForCheck();
200203
}
201204

202205
private _applyUpdatedConfig(config: Ng2ViewConfig) {
@@ -215,9 +218,6 @@ export class UIView {
215218

216219
// Wire resolves to @Input()s
217220
this._applyInputBindings(compFactory, this._componentRef.instance, context, componentClass);
218-
219-
// Initiate change detection for the newly created component
220-
this._componentRef.changeDetectorRef.markForCheck();
221221
}
222222

223223
/**

0 commit comments

Comments
 (0)