We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74f068e commit f087d5eCopy full SHA for f087d5e
src/directives/viewDirective.ts
@@ -465,7 +465,7 @@ function registerControllerCallbacks(
465
cfg: Ng1ViewConfig
466
) {
467
// Call $onInit() ASAP
468
- if (isFunction(controllerInstance.$onInit) && !(cfg.viewDecl.component && hasComponentImpl)) {
+ if (isFunction(controllerInstance.$onInit) && !((cfg.viewDecl.component || cfg.viewDecl.componentProvider) && hasComponentImpl)) {
469
controllerInstance.$onInit();
470
}
471
0 commit comments