Skip to content

Conversation

@alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Mar 14, 2023

refactor(platform-browser): combine DomSharedStylesHost and SharedStylesHost

The mentioned 2 classes have been combined since it is no longer required to have a separate SharedStylesHost for SSR. This changes also reduces the memory usage footprint as remove 1 Map that stores the CSS strings.


refactor(platform-server): remove ServerStylesHost

With the recent changes and refactors of dom_renderer having a separate ServerStylesHost is redundant.


refactor(platform-browser): rename ng-app style attribute to ng-app-id

ng-app is an AngularJS attribute, see https://docs.angularjs.org/api/ng/directive/ngApp. Using this attribute on a non AngularJS element can cause DI issues in AngularJS when running an AngularJS and Angular application on the same page.

As such, we avoid such problems the Angular ng-app attribute is renamed to ng-app-id.

@alan-agius4 alan-agius4 force-pushed the remove-server-styles-host branch 2 times, most recently from 9cb80f3 to a0ffe10 Compare March 14, 2023 12:55
@alan-agius4 alan-agius4 added the area: server Issues related to server-side rendering label Mar 14, 2023
@ngbot ngbot bot added this to the Backlog milestone Mar 14, 2023
@alan-agius4 alan-agius4 force-pushed the remove-server-styles-host branch 17 times, most recently from b6e33da to 2f7319a Compare March 15, 2023 09:16
@alan-agius4 alan-agius4 marked this pull request as ready for review March 15, 2023 12:50
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release labels Mar 15, 2023
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alan-agius4 thanks for the refactoring! 👍 The changes look great!

@alan-agius4 alan-agius4 force-pushed the remove-server-styles-host branch from 4828ced to 989f3bd Compare March 15, 2023 17:54
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer action: merge The PR is ready for merge by the caretaker labels Mar 15, 2023
With the recent changes and refactors of `dom_renderer` having a separate `ServerStylesHost` is redundant.
…StylesHost`

The mentioned 2 classes have been combined since it is no longer required to have a separate `SharedStylesHost` for SSR. This changes also reduces the memory usage footprint as remove 1 Map that stores the CSS strings.
@alan-agius4 alan-agius4 force-pushed the remove-server-styles-host branch 4 times, most recently from a0bf7ce to ae70a38 Compare March 16, 2023 11:36
@alan-agius4
Copy link
Contributor Author

alan-agius4 commented Mar 16, 2023

CL for failing target in G3: http://cl/517104783, there are 2 additional failing targets which are caused by changes not yet synced in G3 as the same targets fail for a different change. See: http://test/OCL:516789458:BASE:517108548:1678974727276:c1431b88

…p-id`

`ng-app` is an AngularJS attribute, see https://docs.angularjs.org/api/ng/directive/ngApp. Using this attribute on a non AngularJS element can cause DI issues in AngularJS when running an AngularJS and Angular application on the same page.

As such, we avoid such problems the Angular `ng-app` attribute is renamed to `ng-app-id`.
@alan-agius4 alan-agius4 force-pushed the remove-server-styles-host branch from ae70a38 to 9e04222 Compare March 16, 2023 13:53
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Mar 16, 2023
@pkozlowski-opensource
Copy link
Member

This PR was merged into the repository by commit 9636910.

pkozlowski-opensource pushed a commit that referenced this pull request Mar 17, 2023
…StylesHost` (#49424)

The mentioned 2 classes have been combined since it is no longer required to have a separate `SharedStylesHost` for SSR. This changes also reduces the memory usage footprint as remove 1 Map that stores the CSS strings.

PR Close #49424
pkozlowski-opensource pushed a commit that referenced this pull request Mar 17, 2023
…p-id` (#49424)

`ng-app` is an AngularJS attribute, see https://docs.angularjs.org/api/ng/directive/ngApp. Using this attribute on a non AngularJS element can cause DI issues in AngularJS when running an AngularJS and Angular application on the same page.

As such, we avoid such problems the Angular `ng-app` attribute is renamed to `ng-app-id`.

PR Close #49424
@alan-agius4 alan-agius4 deleted the remove-server-styles-host branch March 17, 2023 11:33
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: server Issues related to server-side rendering target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants