Skip to content

Commit

Permalink
initial commit with a couple snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
pjlamb12 committed May 5, 2016
0 parents commit cdc487d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ng2-html.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"scope": "text.html meta.tag",
"completions": [
]
}
5 changes: 5 additions & 0 deletions ng2-ts.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"scope": "source.ts source.tsx",
"completions": [
]
}
21 changes: 21 additions & 0 deletions snippets/ng2-component.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<snippet>
<content><![CDATA[
import { Component, OnInit } from '@angular/core';
@Component({
//moduleId: module.id,
selector: '${1:selector}',
templateUrl: '${2:name}.component.html'
})
export class ${3:ComponentName}Component implements OnInit {
constructor() {}
ngOnInit() {
$0
}
}
]]></content>
<tabTrigger>ng2-component</tabTrigger>
<scope>source.ts,source.tsx</scope>
<description></description>
</snippet>
14 changes: 14 additions & 0 deletions snippets/ng2-service.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<snippet>
<content><![CDATA[
import { Injectable } from '@angular/core';
@Injectable()
export class ${1:ServiceName}Service {
$0
constructor() {}
}
]]></content>
<tabTrigger>ng2-component</tabTrigger>
<scope>source.ts,source.tsx</scope>
<description></description>
</snippet>

0 comments on commit cdc487d

Please sign in to comment.