This document provides instructions for generating different components, modules, and adding functionality in an Angular project. It explains how to generate components, services, and modules using the Angular CLI, add Material styling and navigations, and use RxJS observables. It also lists the two main types of forms in Angular and provides an example of subscribing to an observable method. Basic styling for a side-by-side layout is shown. A phone number is listed for the Redhat site.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
141 views
Angular Essentials
This document provides instructions for generating different components, modules, and adding functionality in an Angular project. It explains how to generate components, services, and modules using the Angular CLI, add Material styling and navigations, and use RxJS observables. It also lists the two main types of forms in Angular and provides an example of subscribing to an observable method. Basic styling for a side-by-side layout is shown. A phone number is listed for the Redhat site.
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
To generate component:- ng g c component-name
To generate services:- ng g s service name
To generate modules :- ng g m module-name To add material styling in projects:- ng add @angular/material To add navigations schematics in angular project:- ng generate @angular/material:navigation component-name To add dashboard schematics in angular project:- ng generate @angular/material:dashboard component-name To add any material schematics use command:- ng generate @angular/material:schematic-name component-name -------------------------------- types of form in angular:- model driven(reactive form) template driven form rxjs observales:- method_name().subscribe(()=>{}) side by side textme textme background: blue; padding: 10px; color: white; /* needed styles below */ display: flex; justify-content: space-between; width: 500px; }