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

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
Where should we implement the DOM Manipulation in Angularjs ?
To manipulate the DOM we have directives in Angular JS like ng-show, ng-hide etc. Basically a directive is used to generate the dynamic content i.e., HTML at run time.
S.V.R
0 0
6
Hi, I am working as a web designer and want to work as UI developer. So what should I have to learn initially? And learning Angular Js would be a good option?
It is good choice web designer to become web developer (UI developer). Start with the basics first learn HTML and CSS, Then go and continue with bootstrap and Angular js.
Mudita
Hi, can you explain about Angular JS training and project explanation on it?
If you like I could give you sessions on Angular Js and guide you on the same to build client side applications.
Kiranteja

Which is Easy Angular or React JS ?

Both are tough(or easy) in their own way. React learning curve is short(not easy) but implementation is tougher than Angular. Angular learning curve is lengthy but implementation is easier than React
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

.NET With AngularJS Training Program Syllabus
What You will Learn in .NET with AngularJS Training Program? Introduction to .Net: Features of .Net, CTS, CLS, CLR and MSIL. C# & .Net Basics and Branching & Flow Control. OOPs Concepts,...

Dependency Injection in Angular 2
Dependency injection Dependency injection is a way to supply a new instance of a class with the fully-formed dependencies it requires. Most dependencies are services. Angular uses dependency injection...

$rootScope in Angular JS
$rootScope refers to an object which is accessible from everywhere of the application. You can think $rootScope as global variable which can be accessible in all controllers, services, directives. The...

AngularJS Sunshine Techno system
AngularJS History AngularJS version 1.0 was released in 2012. Miško Hevery, a Google employee, started to work with AngularJS in 2009. The idea turned out very well, and the project is now officially...

Inversion of Control
Problem You have classes that have dependencies on services or components whose concrete type is specified at design time. In this example, ClassA has dependencies on ServiceA and ServiceB. Figure 1 illustrates...

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