Hello, you must create a CSS file for component and you need add the css
file iinside of the component here an example
@Component({
selector: "HighRunners-component",
templateUrl: "./highrunners.template.html",
styleUrls:['highrunners.styles.css'],
providers: [HighRunnersService, LinesService]
})
El domingo, 28 de enero de 2018, 11:21:16 (UTC-8), Koushik Maratha escribió:
>
>
> I am having issues with CSS styling not getting loaded up when I route
> from one page to another page though the same css file is applied for both
> pages.
>
> I have included all the css files in the index.html file and I am trying
> to route from one page to another using "routerLink" directive, everything
> goes well and I am having css issues which some elements are loading
> without any styling.
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.