已經有an answered question,它解釋了ViewEncapsulation.Emulated
,ViewEncapsulation.Native
和ViewEncapsulation.None
之間的差異。Angular 2原生視圖封裝
假設有Electron應用程序保證與本地支持shadow DOM和ViewEncapsulation.Native
的Chromium版本捆綁在一起。這種情況如何從本地封裝中受益以避免模擬開銷?
另一種可能的情況是調試視圖角2的應用程序,與由於ViewEncapsulation.Emulated
幫手屬性和命名空間CSS類嚴重混亂。
對於沒有指定encapsulation
的所有組件,默認封裝可以全局更改爲ViewEncapsulation.Native
?
ViewEncapsulation.Native
的其他實用設備是什麼?
有一個語法錯誤,但否則它正在工作。謝謝。 – estus
感謝您修復:)和反饋。 –