Angular v7 Snippets Cheat Sheet
by stile17 via cheatography.com/76300/cs/18842/
Typescript snippets Typescript snippets (cont)
a-component component a-ctor-skip-self angular NgModule's skipself constructor
a-component-inline component with inline template a-subscribe Rx Observable subscription
a-component-root root app component
Html snippets
a-directive directive
a-guard-can-activate CanActivate guard a-class [class] binding
a-guard-can-activate-child CanActivateChild guard a-select [style] binding
a-guard-can-deactivate CanDeactivate guard a-ngClass ngClass
a-guard-can-load CanLoad guard a-ngFor *ngFor
a-httpclient-get httpClient.get with Rx Observable a-ngForAsync *ngFor with async
a-http-interceptor Empty Angular HttpInterceptor for a-ngFor-trackBy *ngFor with trackBy
HttpClient a-formControlName formControlName
a-http-interceptor-headers Angular HttpInterceptor that sets a-formGroup formGroup
headers for HttpClient
a-formGroupName formGroupName
a-http-interceptor-logging Angular HttpInterceptor that logs traffic
a-ngIf *ngIf
for HttpClient
a-ngIfElse *ngIf with else
a-module module
a-ngModel ngModel
a-module-root root app module
a-routerLink routerLink
a-module-routing routing module file (forChild)
a-routerLink-param routerLink with a route parameter
a-ngrx-data-store-module create an NgRx Data store module
a-ngStyle ngStyle
a-ngrx-data-entity-metadata create the entity metadata for NgRx
a-ngSwitch ngSwitch
a-ngrx-data-entity- create a data service using NgRx
collection-data-service a-prej show the JSON form of a model
a-output-event @Output event and emitter a-preja show the JSON form of a model, using async
a-pipe pipe
Javascript snippets
a-rxjs-import import RxJs features
ex-simple-server Node.js Express Server
a-rxjs-operators import RxJs opertors
a-route-path-404 404 route path
a-route-path-default default route path
a-route-path-with-children route path with children
a-route-path-eager eager route path
a-route-path-lazy lazy route path
a-router-events listen to one or more router events
a-route-params-subscribe subscribe to route parameters
a-service service
a-service-httpclient service with HttpClient
By stile17 Published 15th February, 2019. Sponsored by CrosswordCheats.com
cheatography.com/stile17/ Last updated 15th February, 2019. Learn to solve cryptic crosswords!
Page 1 of 1. http://crosswordcheats.com