How to load external css style into angular 2?



How to load external css style into angular 2?..

Answer / Varun Kumar Jaiswal

You can load external CSS styles in Angular 2 by adding the following line in your index.html file inside the head tag: <link rel="stylesheet" type="text/css" href="path_to_your_style_sheet". If you want to load CSS in a component, use [ngStyle] or style property.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What's new in angular 4?

1 Answers  


What is the tslint.json file used for?

1 Answers  


Is angular 8 released?

1 Answers  


How would you use an angular service to pass data between controllers? Explain with examples?

1 Answers  


Can we use ngfor in div?

1 Answers  


What are the differences between observables & promises?

1 Answers  


How http client is interact with angular 2 servers?

1 Answers  


What is in node js?

1 Answers  


What is deep linking in angular 2?

1 Answers  


Explain ddo in angularjs?

1 Answers  


What is directive?

1 Answers  


What are the directives available in router?

1 Answers  


Categories