Predefined Live Templates for Angular 2 HTML
This topic lists all predefined live templates for Angular 2 HTML in ReSharper 2021.1. For more information about live templates, see Create Source Code Using Live Templates
Template | Details |
---|---|
ctx | Current file context Scope everywhere Body $CTX$ Parameters
|
nguid | Insert new GUID Scope everywhere Body $GUID$ Parameters
|
<script | Create script tag Scope HTML and similar tags Body <script type="$attributeValue$">$END$</script> Parameters
|
a | Create tag attribute Scope HTML and similar attributes Body $ATTR$="$END$" Parameters
|
ngClass | Scope Angular 2 HTML attributes Body [ngClass]="{'$cssClass$': $expression$}"$END$ Parameters
|
ngFor | Scope Angular 2 HTML attributes Body *ngFor="let $item$ of $list$"$END$ Parameters
|
ngIf | Scope Angular 2 HTML attributes Body *ngIf="$expression$"$END$ Parameters
|
ngModel | Scope Angular 2 HTML attributes Body [(ngModel)]="$binding$"$END$ Parameters
|
ngRouterLink | Scope Angular 2 HTML attributes Body [routerLink]="['$routeName$']"$END$ Parameters
|
ngStyle | Scope Angular 2 HTML attributes Body [ngStyle]="{'$style$': $expression$}"$END$ Parameters
|