New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ViewEncapsulation.Emulated no longer default in alpha38? #4494
Comments
Thanks. On Sat, Oct 3, 2015 at 6:24 AM Christopher Swasey notifications@github.com
|
Thanks for the fix 👍 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I've just updated from alpha37 to alpha38, and all my components are now seemingly rendered with the behaviour
ViewEncapsulation.None
. Manually setting a component's encapsulation toEmulated
restores the previous behaviour.Going through the ng2 source, there no longer seems to be any code to make
Emulated
the default. In particular, this line:this.encapsulation = isPresent(encapsulation) ? encapsulation : ViewEncapsulation.Emulated;
formerly of
core/render/api
, in a block of code that seems to have been moved tocore/metadata/view
, is no longer present in the same block of code. While that might be a red herring, it does seem that all remaining references toViewEncapsulation.Emulated
are strict comparisons, without any faculty for it to be the fallback.The text was updated successfully, but these errors were encountered: