Hi Guys

I'm tidying up my Angular2 app and shifting css down to component level.

For a particular component I've moved the styles into a css file:

myComponent.component.css

In my Component decorator I am referencing the css for the component via:

styleUrls: ['./myComponent.component.css']

This is working fine, but I am losing the Bootstrap styles as soon as I add 
styleUrls.

Have you any advice on how best to resolve this?

A bit more info:

My app was created with Angular CLI. I've used NPM to install Bootstrap via 
my package.json file and added it to the styles section of my 
angular-cli.json file.

It works fine until I add stylesUrl to my component (which makes sense if 
it is encapsulating the styles).

Any help would be much appreciated.

Many Thanks
Jamie

-- 
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.

Reply via email to