Skip to content

Commit

Permalink
moved all the completions into snippets instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjlamb12 committed May 5, 2016
1 parent 3684190 commit a997d44
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
test.*
9 changes: 0 additions & 9 deletions ng2-html.sublime-completions

This file was deleted.

5 changes: 0 additions & 5 deletions ng2-ts.sublime-completions

This file was deleted.

7 changes: 7 additions & 0 deletions snippets/ng2-for.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
*ngFor="let ${1:item} of ${2:list}"$0]]></content>
<tabTrigger>ngFor</tabTrigger>
<scope>text.html meta.tag</scope>
<description>Angular 2 ngFor Snippet</description>
</snippet>
7 changes: 7 additions & 0 deletions snippets/ng2-if.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
*ngIf="${1:condition}"$0]]></content>
<tabTrigger>ngIf</tabTrigger>
<scope>text.html meta.tag</scope>
<description>Angular 2 ngIf Snippet</description>
</snippet>
7 changes: 7 additions & 0 deletions snippets/ng2-model.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
[ngModel]="${1:model}"$0]]></content>
<tabTrigger>ngModel</tabTrigger>
<scope>text.html meta.tag</scope>
<description>Angular 2 ngModel Snippet</description>
</snippet>
7 changes: 7 additions & 0 deletions snippets/ng2-router-link.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
[routerLink]="['${1:Component}']"]]></content>
<tabTrigger>routerLink</tabTrigger>
<scope>text.html meta.tag</scope>
<description>Angular 2 routerLink Snippet</description>
</snippet>
11 changes: 11 additions & 0 deletions snippets/ng2-switch.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
<div [ngSwitch]="${1:conditionExpression}">
<div *ngSwitchWhen="${2:expression}">${3:output}</div>
<div *ngSwitchDefault="${4:expression}">${5:output}</div>
</div>
]]></content>
<tabTrigger>ngSwitch</tabTrigger>
<scope>text.html</scope>
<description>Angular 2 ngSwitch Snippet</description>
</snippet>

0 comments on commit a997d44

Please sign in to comment.