Search code examples
angularmetronic

Angular - Set parent component's .m-content style


I'm trying to set height of parent component from child but it isn't applied no matter how I try to set it

:host .m-content{
height: 100% !important; }

In browser code looks like this where m-road-train is my component:enter image description here


Solution

  • As Bear Nithi wrote in comments - "That's not possible." The only way is to write css in that component or its parents.