Skip to content

Commit

Permalink
fix(angular): property assignment happens after append (#1732)
Browse files Browse the repository at this point in the history
* fix(angular): property assignment happens after append

* fix naming
  • Loading branch information
manucorporat committed Jul 16, 2019
1 parent 0459e22 commit 4a3982d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/compiler/app-core/build-conditionals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export function updateBuildConditionals(config: d.Config, b: d.Build) {
b.member = (b.member || b.updatable || b.mode || b.lifecycle);
b.taskQueue = (b.updatable || b.mode || b.lifecycle);
b.constructableCSS = !b.hotModuleReplacement || !!config._isTesting;
b.initializeNextTick = true; // config.outputTargets.some(isOutputTargetAngular);
b.cssAnnotations = true;
}

Expand Down
1 change: 1 addition & 0 deletions src/declarations/build-conditionals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export interface Build extends Partial<BuildFeatures> {
profile?: boolean;
cssVarShim?: boolean;
constructableCSS?: boolean;
initializeNextTick?: boolean;
}

export interface UserBuildConditionals {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/connected-callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const connectedCallback = (elm: d.HostElement, cmpMeta: d.ComponentRuntim
});
}

if (BUILD.taskQueue && BUILD.mode) {
if (BUILD.initializeNextTick) {
// connectedCallback, taskQueue, initialLoad
// angular sets attribute AFTER connectCallback
// https://github.com/angular/angular/issues/18909
Expand Down

0 comments on commit 4a3982d

Please sign in to comment.