diff --git a/snippets/frameworks/angular/html.json b/snippets/frameworks/angular/html.json index 7c70d30f..466c9e29 100644 --- a/snippets/frameworks/angular/html.json +++ b/snippets/frameworks/angular/html.json @@ -1,139 +1,202 @@ { - "class": { - "prefix": "a-class", - "body": ["[class]=\"${1:expression}\""], - "description": "Angular [class] binding" - }, - "style": { - "prefix": "a-style", - "body": ["[style.${1:property}]=\"${2:expression}\""], - "description": "Angular [style] binding" - }, - "ngClass": { - "prefix": "a-ngClass", - "body": ["[ngClass]=\"{${1:cssClass}: ${2:expression}}\""], - "description": "Angular ngClass" - }, - "ngFor": { - "prefix": "a-ngFor", - "body": ["*ngFor=\"let ${1:item} of ${2:list}\"${0}"], - "description": "Angular *ngFor" - }, - "ngFor with trackBy": { - "prefix": "a-ngFor-trackBy", - "body": ["*ngFor=\"let ${1:item} of ${2:list}; trackBy:${1:item}.id\"${0}"], - "description": "Angular *ngFor with trackBy" - }, - "ngForAsync": { - "prefix": "a-ngForAsync", - "body": ["*ngFor=\"let ${1:item} of ${2:stream} | async as ${3:list}\"${0}"], - "description": "Angular *ngForAsync" - }, - "ngForm": { - "prefix": "a-form", - "body": ["
", "
"], - "description": "Form with ngSubmit and form attributes" - }, - "ngFormArrayName": { - "prefix": "a-formArrayName", - "body": ["formArrayName=\"${1:control}\""], - "description": "Angular formArrayName" - }, - "ngFormControlName": { - "prefix": "a-formControlName", - "body": ["formControlName=\"${1:control}\""], - "description": "Angular formControlName" - }, - "ngFormGroup": { - "prefix": "a-formGroup", - "body": ["[formGroup]=\"${1:form}\""], - "description": "Angular formGroup" - }, - "ngFormGroupName": { - "prefix": "a-formGroupName", - "body": ["[formGroupName]=\"${1:name}\""], - "description": "Angular formGroupName" - }, - "ngFormSubmit": { - "prefix": "a-form-submit", - "body": [""], - "description": "Angular form submit" - }, - "ngIf": { - "prefix": "a-ngIf", - "body": ["*ngIf=\"${1:expression}\""], - "description": "Angular *ngIf" - }, - "ngIfElse": { - "prefix": "a-ngIfElse", - "body": ["*ngIf=\"${1:expression};else ${2:templateName}\""], - "description": "Angular *ngIfElse" - }, - "ngModel": { - "prefix": "a-ngModel", - "body": ["[(ngModel)]=\"${1:binding}\""], - "description": "Angular ngModel" - }, - "ngRouterLink": { - "prefix": "a-routerLink", - "body": ["[routerLink]=\"['/${1:routePath}']\" routerLinkActive=\"${2:router-link-active}\" $0"], - "description": "Angular routerLink" - }, - "ngRouterLinkWithParameter": { - "prefix": "a-routerLink-param", - "body": [ - "[routerLink]=\"['${1:routePath}', ${2:routeParameterValue}]\"", - "routerLinkActive=\"${3:router-link-active}\"$0" - ], - "description": "Angular routerLink with a route parameter" - }, - "ngSelect": { - "prefix": "a-select", - "body": [ - "" - ], - "description": "", + "\t", + "" + ], + "description": "