From 36841909c65ca696c90be08bb418afed714170c8 Mon Sep 17 00:00:00 2001 From: Preston Lamb Date: Thu, 5 May 2016 09:08:25 -0600 Subject: [PATCH] added a few code completions for inside html templates --- ng2-html.sublime-completions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ng2-html.sublime-completions b/ng2-html.sublime-completions index 7df38ef..283c580 100644 --- a/ng2-html.sublime-completions +++ b/ng2-html.sublime-completions @@ -1,5 +1,9 @@ { "scope": "text.html meta.tag", "completions": [ + { "trigger": "*ngFor", "contents": "*ngFor=\"let ${1:item} of ${2:list}\" "} + { "trigger": "*ngIf", "contents": "*ngIf=\"${1:condition}\" "} + { "trigger": "ngModel", "contents": " [ngModel]=\"${1:model}\" "} + { "trigger": "routerLink", "contents": " [routerLink]=\"['${1:RouteName}']\" "} ] } \ No newline at end of file