Skip to content

Commit

Permalink
added an import snippet and changed triggers for if and for
Browse files Browse the repository at this point in the history
  • Loading branch information
pjlamb12 committed Jun 2, 2016
1 parent 33596ea commit b6508d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snippets/ng2-for.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
*ngFor="let ${1:item} of ${2:list}"$0]]></content>
<tabTrigger>ngFor</tabTrigger>
<tabTrigger>*ngFor</tabTrigger>
<scope>text.html meta.tag</scope>
<description>Angular 2 ngFor Snippet</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/ng2-if.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
*ngIf="${1:condition}"$0]]></content>
<tabTrigger>ngIf</tabTrigger>
<tabTrigger>*ngIf</tabTrigger>
<scope>text.html meta.tag</scope>
<description>Angular 2 ngIf Snippet</description>
</snippet>
7 changes: 7 additions & 0 deletions snippets/ng2-import.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
import { ${2:Module} } from '${1:path/to/module'}$0]]></content>
<tabTrigger>ng2-import</tabTrigger>
<scope>source.ts,source.tsx,source.js</scope>
<description>Angular 2 Import Snippet</description>
</snippet>

0 comments on commit b6508d2

Please sign in to comment.