I’m migrating source code from ionic3 to ionic4.
If I wrote the style directly in the html it can be applied, but I can’t call scss using class in html.
Why I can’t call scss from html?
It works in ionic3.
login.page.ts
..
@Component({
selector: 'page-login',
templateUrl: 'login.page.html',
styleUrls: ['login.page.scss'],
providers: [CustomNativeStorage]
})
..
login.page.html
<ion-content>
..
<div class="welcome_text">
<h4>WELCOME_TEXT</h4>
</div>
..
</ion-content>
login.page.scss
page-login {
.welcome_text{
margin-top: 50px;
color: white;
text-align: center;
}
..
}