What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-20 07:04:14
Diff between ViewEncapsulation.Native, ViewEncapsulation.None and ViewEncapsulation.Emulated
If you want styles that are added to Parent applied to Child you need to set ViewEncapsulation.None in the Child component so it doesn't prevent styles to bleed in. Emulated and Native are just two different ways to prevent styles to bleed in to and out ... Add solution -
Javascript 2021-10-17 02:54:04
create custom html element
class className extends HTMLElement{//or any othere element you want contructor(){ super()//to call the parent class contructor this._root = this.attachShadow({mode:"open"})//attach a shadow dom for easy manipulation connectedCa... Add solution -
Other 2021-09-28 13:52:02
angular directive vs component
Components ARE Directives. They are an extenison of directives with their own template and features. They are used for different things. Main differences: Components: - Have their own shadow DOM (an encapsulated template). - Only one component can be pr... Add solution
Best helpers
Ranking is empty