angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

View Encapsulation not working between multiple Angular 4 Apps (built with aot)

Open d-bechtel opened this issue 9 years ago • 2 comments

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

Versions.

node: 6.9.4 npm: 3.10.10

I'm using webpack 2.3.3 with @ngtools/webpack loader (v. 1.2.13)

Repro steps.

Here is an working example with JIT-compiled Apps, both apps get different css selectors. If i build these apps with AOT, both Apps get the same css selector: http://plnkr.co/edit/fFTrK07EWBV6vSxhYaFe?p=preview

Desired functionality.

If i boot multiple (different) Angular 4 Apps (in different zones), the styles of each app will be adopt to all apps, because of the same css selector ( .app[_ngcontent-c0] )

angular_aot_bug

One possible solution should be a configurable prefix for the css-selector.

d-bechtel avatar Apr 05 '17 10:04 d-bechtel

Heya, could you open this on https://github.com/angular/angular instead? It seems to be related with the AOT compiler itself and not the CLI (which merely uses it).

filipesilva avatar May 04 '17 13:05 filipesilva

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.