How to inclcude css files in a angular project correctly?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

Software Trainer

ng class
Comments

Software Trainer

ng css class
Comments

IT Course Training

import {Component} from '@angular/core'; @Component({ selector:'my-app', templateUrl:'app.component.html', //styles: //use for inline css styleUrls: //use for css file }) export class AppComponent{}
read more
import {Component} from '@angular/core'; @Component({ selector:'my-app', templateUrl:'app.component.html', //styles:['.active{color:#cecece}' ] //use for inline css styleUrls: ['./app.component.css'] //use for css file }) export class AppComponent{} read less
Comments

IT Course Training

import {Component} from '@angular/core'; @Component({ selector:'my-app', templateUrl:'app.component.html', //styles: //use for inline css styleUrls: //use for css file }) export class AppComponent{}
read more
import {Component} from '@angular/core'; @Component({ selector:'my-app', templateUrl:'app.component.html', //styles:['.active{color:#cecece}' ] //use for inline css styleUrls: ['./app.component.css'] //use for css file }) export class AppComponent{} read less
Comments

View 2 more Answers

Related Questions

How do we save Data in Angular?
First you need save the data in local storage and after this you need have a json to store data.
Raminder

As web designer what is easy and useful to learn Angular or React?

If you are having prior Javascript knowledge then React is easy than Angular.
Nikunj
Hi, I am pursuing MBA 1st Year. I want to learn Digital Marketing. Is it right for career growth, or should I choose to learn some other technologies? If yes, please give me your suggestions that help me to get a JOB in the IT Sector.
Hi Sai, To find right career path you need to try things ( Which is long way). I would suggest you to learn multiple things ( implementation is important part) and then find your intrest and dive in to...
Sai
How Nodejs and Angular Work together?
If you need to connect Angular js With node js . you should use express js as middle ware.
Raminder

Angular or React which is easy to learn and value in the market & job openings

Both are demanding in the market, but as per Google trends React much in demand than Angular. React is javascript based and Angular is typescript based. If you are good at javascript, then React is easy...
Ganesh

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Pro Developer Program Syllabus
What you will learn in Pro-Developer Program: i. Introduction to Web Technologies. ii. Introduction to .Net - Features of .Net, CTS, CLS, CLR and MSIL. iii. C# & .Net Basics - Data Types,...

Angular-2 Developer Training Program Syllabus
Angular2 Developer Training Program Syllabus: Introduction to Angular2. Why Angular2. Angular2 Features: Components, Services and Typescript. Angular2 Components: Templates, Modules, Services...

Best way to learn any software Course
Hi First conform whether you are learning from a real time consultant. Get some Case Studies from the consultant and try to complete with the help of google not with consultant. Because in real time same situation will arise. Thank you

Top 6 Technology Trends for 2020
Technology has been evolving at a pace that the annual predictions about trends may seem to be outdated before they go live as a published blog post or article. The technology when evolves...

Some good resources
Clean Code by Robert C Martin, is available in my profile please download and read it, irrespective of what language you code in, it will change the way you code. Also if you code in Javascript read https://12factor.net/ https://blog.risingstack.com/javascript-clean-coding-best-practices-node-js-at-scale/ For...

Recommended Articles

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Looking for Angular.JS Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you