app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
color:String = "indigo";
}
app.component.html
<h2>Angular Style Binding</h2>
<h3 [style.color]="color">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Phasellus sit amet dignissim justo, vitae maximus lectus.
Integer molestie a nunc id ullamcorper.
Etiam ornare est quis rhoncus maximus.
</h3>
- angular - Loop through an array of objects
- angular - How to use nested loop
- angular - How to bind multiple style
- angular - Generate random number in range
- angular - Generate random whole number
- angular - How to submit form data
- angular bootstrap - Rating hover event
- angular bootstrap - Readonly & editable Rating
- angular bootstrap - How to show Toast message
- angular bootstrap - How to use Popover
- angular bootstrap - Open Popover on mouse hover
- angular bootstrap - Open close Popover on button click
- angular bootstrap - Timepicker with meridian
- angular bootstrap - Timepicker without spinner
- angular bootstrap - Timepicker custom steps