Show Menu
Cheatography

Angular Cheat Sheet (DRAFT) by

Angular Framework

This is a draft cheat sheet. It is a work in progress and is not finished yet.

ng

Create new project
ng new <pr­­oj­e­c­t-­­nam­­e>
Create new component
ng g c <co­mpo­nen­t-n­ame>
Create a child component without folder
ng g c compon­ent­/co­mpo­nen­t-d­etail --flat
Create new module
ng g m <di­rec­tor­y>/­<mo­dul­e-n­ame> --flat -m <ma­in-­mod­ule­-na­me>
Run
ng serve

loops

*ngIf
*ngFor
 

operatos

safe navigation operator
produc­t?.name
                   

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi