In my work with Ionic 3 and angular 4, each HTML file is accompanied by its own CSS file. There are times when I reference a class in one HTML file that is defined in another HTML file. I have observed that this CSS class gets injected into the main.js
Here is an example of the structure:
page1.hmtl
page1.css
page1.ts
page2.html
page2.css
page2.ts
I have referenced a CSS class from page1.css in page2.html.
My question is: Does this behavior depend on the order in which the ts files are declared in the app.module.ts?
page1 {
.marginForEmplacement{
margin-left: -5px!important;
}
}
page2.html
<div class="marginForEmplacement"> some text </div>