Skip to content

jeevan-lal/Angular-Material-14-Form-Example

Repository files navigation

Angular Material 14 - Form Components

Angular

Installation

npm install -g @angular/cli
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
ng new my-app
ng serve --open
ng build

Other Command

# Insert a new Component
ng generate component xyz
ng generate component page-not-found

# Add Material
ng add @angular/material

# Add PWA Support
ng add @angular/pwa

Router

# Generate Routing File
ng generate module app-routing --module app --flat # Root
ng generate module my-module --routing # Module
ng generate module heroes/heroes --module app --flat --routing # Sub Folder

Example

Angular Material

Installation

ng add @angular/material

Display a component