In this article post, I am sharing the knowledge about creating and using the CSS Styles and StyleUrls a simple component in Angular 4 or Angular 5 . In the below example, I am using the “Button CSS” in Angular 5 application login my page and it contains three steps – 1. login.component.css 2. login.component.html 3. login.component.ts Example 1 – Using the StyleUrls login.component.css - h2 { font-size : 15px ; background-color : green ; } .btn { border-radius : 0 ; } .btn-primary { display : inline-block ; padding : 6px 12px ; margin-bottom : 0 ; font-size : 14px ; font-weight : normal ; line-height : 1.42857143 ; text-align : center ; ...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers