I have a component which is app-details-banner-component.html:
<div class="container">
<div class="row">
<div class="col-7">
<h1 class="project-title">Details</h1>
<p class="project-details">Lorem Ipsum.....</p>
</div>
<div class="col-5">
<img src="assets/images/colorful-beach.svg">
</div>
</div>
</div>
The selector of my component is named app-details-banner
therefore I added <app-details-banner></app-details-banner>
into my main html file where I want it to appear. However I also want to add the following css styles only into into my app-component.scss:
.project-details { display: none ;}
.project-title { color: #0A7790; }
However, this is not working and it has no effect. I only want the styles to be applied in the main component but not in the other components where <app-details-banner></app-details-banner>
is called so how can I do this?