Skip to content

Commit 9fa8a23

Browse files
committed
Removed extra tabs and white space at the end of many of the snippets.
1 parent a387a3e commit 9fa8a23

11 files changed

+17
-24
lines changed

snippets/ng2-bootstrap-dev.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { ${1:AppComponent} } from './${2:name}.component';
77
bootstrap(${AppComponent})
88
.then(success => console.log(`Bootstrap success`))
99
.catch(error => console.log(error));
10-
$0
11-
]]></content>
10+
$0]]></content>
1211
<tabTrigger>ng2-bootstrap-dev</tabTrigger>
1312
<scope>source.ts,source.tsx,source.js</scope>
1413
<description>Angular 2 Development Bootstrap Snippet</description>

snippets/ng2-bootstrap-prod.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ enableProdMode();
1010
bootstrap(${AppComponent})
1111
.then(success => console.log(`Bootstrap success`))
1212
.catch(error => console.log(error));
13-
$0
14-
]]></content>
13+
$0]]></content>
1514
<tabTrigger>ng2-bootstrap-prod</tabTrigger>
1615
<scope>source.ts,source.tsx,source.js</scope>
1716
<description>Angular 2 Production Bootstrap Snippet</description>

snippets/ng2-component.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export class ${3:ComponentName}Component implements OnInit {
1313
ngOnInit() {
1414
$0
1515
}
16-
}
17-
]]></content>
16+
}]]></content>
1817
<tabTrigger>ng2-component</tabTrigger>
1918
<scope>source.ts,source.tsx,source.js</scope>
2019
<description>Angular 2 Component Snippet</description>

snippets/ng2-http-get.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<snippet>
22
<content><![CDATA[
33
return this.${1:http}.get('${2:url}')
4-
.map((res: Response) => res.json());$0
5-
]]></content>
4+
.map((res: Response) => res.json());$0]]></content>
65
<tabTrigger>ng2-http-get</tabTrigger>
76
<scope>source.ts,source.tsx,source.js</scope>
87
<description>Angular 2 HTTP Get Snippet</description>

snippets/ng2-pipe.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export class ${2:PipeName}Pipe implements PipeTransform {
1313
return '';
1414
}
1515
}
16-
}
17-
]]></content>
16+
}]]></content>
1817
<tabTrigger>ng2-pipe</tabTrigger>
1918
<scope>source.ts,source.tsx,source.js</scope>
2019
<description>Angular 2 Pipe Snippet</description>

snippets/ng2-root-component.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ import 'rxjs/Rx';
1818
export class AppComponent {
1919
constructor() {}
2020
$0
21-
}
22-
]]></content>
21+
}]]></content>
2322
<tabTrigger>ng2-root-component</tabTrigger>
2423
<scope>source.ts,source.tsx,source.js</scope>
2524
<description>Angular 2 Root Component Snippet</description>
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<snippet>
22
<content><![CDATA[
3-
{ path: '${1:path}', component: ${2:Component} }
4-
]]></content>
5-
<tabTrigger>ng2-route-definition</tabTrigger>
3+
ngOnChanges() {
4+
$0
5+
}
6+
}
7+
]]></content>
8+
<tabTrigger>ng2-on-changes</tabTrigger>
69
<scope>source.ts,source.tsx,source.js</scope>
7-
<description>Angular 2 Route Definition Snippet</description>
10+
<description>Angular 2 ngOnChanges Snippet</description>
811
</snippet>

snippets/ng2-router-config.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { RouterConfig } from '@angular/router';
44
55
export const ${1:component}Routes: RouterConfig = [
66
{ path: '', component: ComponentName }
7-
]
8-
]]></content>
7+
] ]]></content>
98
<tabTrigger>ng2-router-config</tabTrigger>
109
<scope>source.ts,source.tsx,source.js</scope>
1110
<description>Angular 2 Router Config Snippet</description>

snippets/ng2-service.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { Injectable } from '@angular/core';
66
export class ${1:ServiceName}Service {
77
$0
88
constructor() {}
9-
}
10-
]]></content>
9+
}]]></content>
1110
<tabTrigger>ng2-service</tabTrigger>
1211
<scope>source.ts,source.tsx,source.js</scope>
1312
<description>Angular 2 Service Snippet</description>

snippets/ng2-subscribe.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<snippet>
22
<content><![CDATA[
33
this.${1:service}.${2:function}()
4-
.subscribe(${3:arg} => this.${4:property} = ${3:arg});$0
5-
]]></content>
4+
.subscribe(${3:arg} => this.${4:property} = ${3:arg});$0]]></content>
65
<tabTrigger>ng2-subscribe</tabTrigger>
76
<scope>source.ts,source.tsx,source.js</scope>
87
<description>Angular 2 Subscribe Snippet</description>

snippets/ng2-switch.sublime-snippet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
<div [ngSwitch]="${1:conditionExpression}">
44
<div *ngSwitchWhen="${2:expression}">${3:output}</div>
55
<div *ngSwitchDefault="${4:expression}">${5:output}</div>
6-
</div>
7-
]]></content>
6+
</div>]]></content>
87
<tabTrigger>ngSwitch</tabTrigger>
98
<scope>text.html</scope>
109
<description>Angular 2 ngSwitch Snippet</description>

0 commit comments

Comments
 (0)