Jun 23, 2024
npm install -g @angular/cli
).ng new <project-name>
.ng serve
to start the project and access it via localhost:4200
.ngFor
: Loop through arrays to render list items.ngIf
: Conditionally render elements.ngClass
, ngStyle
: Dynamically set CSS classes or inline styles.{{}}
and [property]
syntax).[(ngModel)]
.ngModel
.FormControl
, FormGroup
, and Validators
.<router-outlet>
.Router
service.:id
).**
).HttpClient
module for API interactions.(event)
syntax).