Global styles with this template #1133

Closed
opened 2025-08-09 17:19:00 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @Sampath-Lokuge on 1/8/2017

Hi,

Can you tell me how to add Global styles with this template ? I have tried like below.But it's not working.

I have added style.css file in this path components/app/style.css.After that inside the app.component.ts file where I have done this :

styles: [require('./style.css')],

After that I have tried to use that styles on my child component and it doesn't work.Can you tell me how to do that ? Thanks.

*Originally created by @Sampath-Lokuge on 1/8/2017* Hi, Can you tell me how to add Global styles with this template ? I have tried like below.But it's not working. I have added `style.css` file in this path `components/app/style.css`.After that inside the `app.component.ts` file where I have done this : ` styles: [require('./style.css')], ` After that I have tried to use that styles on my child component and it doesn't work.Can you tell me how to do that ? Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1133
No description provided.