├── LICENSE ├── README.md ├── angular2-html.sublime-completions ├── angular2-js.sublime-completions ├── html ├── ngclass-binding.sublime-snippet ├── ngclass-star.sublime-snippet ├── ngfor-star.sublime-snippet ├── ngforof-binding.sublime-snippet ├── ngif-binding.sublime-snippet ├── ngif-star.sublime-snippet ├── ngmodel-2way.sublime-snippet ├── ngmodel-binding.sublime-snippet ├── ngmodelchange-event.sublime-snippet ├── ngstyle-binding.sublime-snippet ├── ngswitch-binding.sublime-snippet ├── ngswitchdefault-binding.sublime-snippet └── ngswitchwhen-binding.sublime-snippet └── snippets ├── component-basic.sublime-snippet ├── component-complex.sublime-snippet ├── component-external.sublime-snippet ├── component.sublime-snippet ├── directive-basic.sublime-snippet ├── directive-complex.sublime-snippet ├── directive.sublime-snippet ├── pipe-es6.sublime-snippet ├── pipe.sublime-snippet ├── route-data.sublime-snippet ├── route-default.sublime-snippet ├── route-param.sublime-snippet ├── route-parent.sublime-snippet ├── route-redirect.sublime-snippet ├── route-wildcard.sublime-snippet ├── route.sublime-snippet ├── routeconfig-basic.sublime-snippet ├── routeconfig.sublime-snippet └── service.sublime-snippet /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Evan Plaice 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Angular2 Snippets for Sublime Text 2 | 3 | This package provides snippets and completions for Angular2. Sublime Text uses fuzzy searching for snippets/completions, therefore you can trigger either without having to write out the whole trigger. 4 | 5 | ## Installation 6 | 7 | **Package Control** 8 | 9 | **Notice: submission to package control is still pending so 'Manual' install is the only option at this time.** 10 | 11 | - open the `Command Palette` (⌘ + ⇧ + p | SUPER + SHIFT + p) 12 | - select `Package Control: Install Package` (p + i) 13 | - select `Angular2 Snippets` 14 | 15 | **Manual** 16 | 17 | - copy/clone the files into your Sublime Text User Preferences folder 18 | 19 | **Config** 20 | 21 | - to enable auto-completion add the following to `User.sublime-preferences` 22 | 23 | ```json 24 | "auto_complete_triggers": [ {"selector": "text.html", "characters": "<"}, {"selector": "text.html meta.tag", "characters": " " } ] 25 | ``` 26 | 27 | ## Directory 28 | 29 | **Snippet Categories:** 30 | 31 | - [Component](#component) 32 | - [Directive](#directive) 33 | - [Service](#service) 34 | - [Pipe](#pipe) 35 | - [RouteConfig](#routeconfig) 36 | - [Route](#route) 37 | - [Test](#test) 38 | 39 | **Completion Categories:** 40 | 41 | - [Annotations](#annotations) 42 | - [Decorators](#decorators) 43 | - [Lifecycle](#lifecycle) 44 | - [Routing](#routing) 45 | - [Directives](#directives) 46 | - [Attributes](#attributes) 47 | - [Pipes](#pipes) 48 | 49 | ## Snippets 50 | 51 | ### Component 52 | 53 | **Trigger:** `component` 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 66 | 67 | 68 | 69 | 77 | 78 | 79 | 80 | 88 | 89 | 90 | 91 | 105 | 106 |
descriptioncompletion
@Component

 63 | @Component(${2})
 64 | export class ${1}Component {${3}}
 65 |     
@Component (Basic)

 70 | @Component({
 71 |   selector: '${2}',
 72 |   template: '${3}',
 73 |   styles: '${4}'
 74 | })
 75 | export class ${1}Component {${5}}
 76 |     
@Component (External)

 81 | @Component({
 82 |   selector: '${2}',
 83 |   templateUrl: '${3}',
 84 |   styleUrls: ['${4}']
 85 | })
 86 | export class ${1}Component {${5}}
 87 |     
@Component (Complex)

 92 | @Component({
 93 |   selector: '${2}',
 94 |   providers: ['${3}'],
 95 |   viewProviders: ['${4}'],
 96 |   template: '${5}',
 97 |   templateUrl: '${6}',
 98 |   styles: '${7}',
 99 |   styleUrls: ['${8}'],
100 |   directives: ['${9}'],
101 |   pipes: ['${10}']
102 | })
103 | export class ${1}Component {${11}}
104 |     
107 | 108 | ### Directive 109 | 110 | **Trigger:** `directive` 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 123 | 124 | 125 | 126 | 132 | 133 | 134 | 135 | 144 | 145 |
descriptioncompletion
@Directive

120 | @Directive({${2}})
121 | export class ${1}Directive {${3}}
122 |     
@Directive (Basic)

127 | @Directive({
128 |   selector: '${2}'
129 | })
130 | export class ${1}Directive {${3}}
131 |     
@Directive (Complex)

136 | @Directive({
137 |   selector: '${2}',
138 |   providers: ['${3}'],
139 |   properties: ['${4}'],
140 |   host: {'${5}'}
141 | })
142 | export class ${1}Directive {${6}}
143 |     
146 | 147 | ### Service 148 | 149 | **Trigger:** `service` 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 162 | 163 |
descriptioncompletion
Service

159 | @Injectable()
160 | export class ${1}Service {${2}}
161 |     
164 | 165 | ### Pipe 166 | 167 | **Trigger:** `pipe` 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 182 | 183 | 184 | 185 | 191 | 192 |
descriptioncompletion
Pipe

177 | @Pipe({ name: '${2}' })
178 | export class ${1}Pipe implements PipeTransform {
179 |   transform (value:number, args:${3:any}[]) : ${4:any} {${5}}
180 | }
181 |     
Pipe (ES6)

186 | @Pipe({ name: '${2}' })
187 | export class ${1}Pipe {
188 |   transform (value, args) {${3}}
189 | }
190 |     
193 | 194 | ### RouteConfig 195 | 196 | **Trigger:** `routeconfig` 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 210 | 211 | 212 | 213 | 223 | 224 |
descriptioncompletion
@RouteConfig

206 | @RouteConfig([
207 |   ${1}
208 | ])
209 |     
@RouteConfig (Basic)

214 | @RouteConfig([
215 |   {
216 |     path: '/${1}',
217 |     name: '${2}',
218 |     component: ${2}Component,
219 |     useAsDefault: true
220 |   }${3}
221 | ]
222 |     
225 | 226 | ### Route 227 | 228 | **Trigger:** `route` 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 244 | 245 | 246 | 247 | 255 | 256 | 257 | 258 | 264 | 265 | 266 | 267 | 274 | 275 | 276 | 277 | 284 | 285 | 286 | 287 | 295 | 296 | 297 | 298 | 305 | 306 |
descriptioncompletion
Route

238 | {
239 |   path: '/${1}',
240 |   name: '${2}',
241 |   component: ${2}Component
242 | }${3}
243 |     
Route (Default)

248 | {
249 |   path: '/${1}',
250 |   name: '${2}',
251 |   component: ${2}Component,
252 |   useAsDefault: true
253 | }${3}
254 |     
Route (Redirect)

259 | {
260 |   path: '/${1:**}',
261 |   redirectTo: ['${2}']
262 | }${3}
263 |     
Route (Param)

268 | {
269 |   path: '/${1}:${2}',
270 |   name: '${3}',
271 |   component: ${3}Component
272 | }${4}
273 |     
Route (Wildcard)

278 | {
279 |   path: '/${1}*${2}',
280 |   name: '${3}',
281 |   component: ${3}Component
282 | }${4}
283 |     
Route (Data)

288 | {
289 |   path: '/${1}',
290 |   name: '${2}',
291 |   component: ${2}Component,
292 |   data: {${3}: ${4}}
293 | }${5}
294 |     
Route (Parent)

299 | {
300 |   path: '/${1}...',
301 |   name: '${2}',
302 |   component: ${2}Component
303 | }${3}
304 |     
307 | 308 | ### Test 309 | 310 | 311 | 312 | 313 | 314 | 315 |
descriptioncompletion
316 | 317 | ## Completions 318 | 319 | ### Annotations 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 331 | 332 | 333 | 334 | 339 | 340 | 341 | 342 | 347 | 348 | 349 | 350 | 355 | 356 | 357 | 358 | 363 | 364 | 365 | 366 | 371 | 372 | 373 | 374 | 377 | 378 | 379 | 380 | 385 | 386 | 387 | 388 | 393 | 394 | 395 | 396 | 401 | 402 | 403 | 404 | 409 | 410 | 411 | 412 | 417 | 418 | 419 | 420 | 425 | 426 |
triggercompletion
selector

329 | selector: '$1'
330 |     
inputs

335 | inputs: [
336 |   '$1'
337 | ]
338 |     
outputs

343 | outputs: [
344 |   '$1'
345 | ]
346 |     
providers

351 | providers: [
352 |   $1
353 | ]
354 |     
viewProviders

359 | viewProviders: [
360 |   $1
361 | ]
362 |     
template

367 | template: `
368 | $1
369 | `
370 |     
templateUrl

375 | templateUrl: '$1'
376 |     
styles

381 | styles: `
382 | $1
383 | `
384 |     
styleUrls

389 | styleUrls: [
390 |   '$1'
391 | ]
392 |     
directives

397 | directives: [
398 |   $1
399 | ]
400 |     
pipes

405 | pipes: [
406 |   $1
407 | ]
408 |     
properties

413 | properties: [
414 |   '$1'
415 | ]
416 |     
host

421 | host: {
422 |   '$1': '$2'
423 | }
424 |     
427 | 428 | ### Decorators 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 440 | 441 | 442 | 443 | 446 | 447 | 448 | 449 | 452 | 453 | 454 | 455 | 458 | 459 | 460 | 461 | 464 | 465 | 466 | 467 | 470 | 471 | 472 | 473 | 476 | 477 | 478 | 479 | 482 | 483 | 484 | 485 | 488 | 489 |
triggercompletion
@Inject

438 | @Inject($1) $2
439 |     
@Input

444 | @Input($1) $2
445 |     
@Output

450 | @Output($1) $2 = $3
451 |     
@HostBinding

456 | @HostBinding($1) $2
457 |     
@HostListener

462 | @HostListener('$1', ['$2'])
463 |     
@ContentChild

468 | @ContentChild($1)
469 |     
@ContentChildren

474 | @ContentChildren($1)
475 |     
@ViewChild

480 | @ViewChild($1)
481 |     
@ViewChildren

486 | @ViewChildren($1)
487 |     
490 | 491 | ### Lifecycle 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 505 | 506 | 507 | 508 | 513 | 514 | 515 | 516 | 521 | 522 | 523 | 524 | 529 | 530 | 531 | 532 | 537 | 538 | 539 | 540 | 545 | 546 | 547 | 548 | 553 | 554 | 555 | 556 | 561 | 562 | 563 | 564 | 569 | 570 |
triggercompletion
constructor

501 | constructor($1) {
502 |   $2
503 | }
504 |     
ngOnChanges

509 | ngOnChanges($1) {
510 |   $2
511 | }
512 |     
ngOnInit

517 | ngOnInit($1) {
518 |   $2
519 | }
520 |     
ngDoCheck

525 | ngDoCheck($1) {
526 |   $2
527 | }
528 |     
ngAfterContentInit

533 | ngAfterContentInit($1) {
534 |   $2
535 | }
536 |     
ngAfterContentChecked

541 | ngAfterContentChecked($1) {
542 |   $2
543 | }
544 |     
ngAfterViewInit

549 | ngAfterViewInit($1) {
550 |   $2
551 | }
552 |     
ngAfterViewChecked

557 | ngAfterViewChecked($1) {
558 |   $2
559 | }
560 |     
ngOnDestroy

565 | ngOnDestroy($1) {
566 |   $2
567 | }
568 |     
571 | 572 | ### Routing 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 584 | 585 | 586 | 587 | 592 | 593 | 594 | 595 | 600 | 601 | 602 | 603 | 608 | 609 | 610 | 611 | 616 | 617 | 618 | 619 | 624 | 625 |
triggercompletion
@CanActivate

582 | @CanActivate($1)
583 |     
routerOnActivate

588 | routerOnActivate($1) {
589 |   $2
590 | }
591 |     
routerCanReuse

596 | routerCanReuse($1) {
597 |   $2
598 | }
599 |     
routerOnReuse

604 | routerOnReuse($1) {
605 |   $2
606 | }
607 |     
routerCanDeactivate

612 | routerCanDeactivate($1) {
613 |   $2
614 | }
615 |     
routerOnDeactivate

620 | routerOnDeactivate($1) {
621 |   $2
622 | }
623 |     
626 | 627 | ### Directives 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 |
triggercompletion
ngClass
[ngClass]="$1"
ngIf
*ngIf="$1"
ngIf
[ngIf]="$1"
ngFor
*ngFor="let $1 of $2"
ngForOf
[ngForOf]="$1"
ngStyle
[ngStyle]="$1"
ngSwitch
[ngSwitch]="$1"
ngSwitchDefault
[ngSwitchDefault]="$1"
ngSwitchWhen
[ngSwitchWhen]="$1"
ngModel
[ngModel]="$1"
ngModel
[(ngModel)]="$1"
ngModelChange
(ngModelChange)="$1"
683 | 684 | ### Pipes 685 | 686 | 687 | 688 | 689 | 690 | 691 |
triggercompletion
692 | -------------------------------------------------------------------------------- /angular2-html.sublime-completions: -------------------------------------------------------------------------------- 1 | { 2 | "scope": "text.html meta.tag", 3 | 4 | "completions": 5 | [ 6 | // Note: HTML completions don't currently work due to an outstanding bug in ST3. 7 | // Snippets are used instead. 8 | 9 | // Directives 10 | // NgClass 11 | // NgIf 12 | // NgFor 13 | // NgForOf 14 | // NgStyle 15 | // NgSwitch 16 | // NgSwitchDefault 17 | // NgSwitchWhen 18 | // NgModel 19 | // NgModelChange 20 | // NgForm 21 | 22 | // Pipes 23 | // async 24 | // currency 25 | // date 26 | // decimal 27 | // json 28 | // lowercase 29 | // number 30 | // percent 31 | // slice 32 | // uppercase 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /angular2-js.sublime-completions: -------------------------------------------------------------------------------- 1 | { 2 | "scope": "source.js, source.ts", 3 | 4 | "completions": 5 | [ 6 | // Annotations 7 | { "trigger": "selector", "contents": "selector: '$1'" }, 8 | { "trigger": "inputs", "contents": "inputs: [\n '$1'\n]" }, 9 | { "trigger": "outputs", "contents": "outputs: [\n '$1'\n]" }, 10 | { "trigger": "providers", "contents": "providers: [\n $1\n]" }, 11 | { "trigger": "viewProviders", "contents": "viewProviders: [\n $1\n]" }, 12 | { "trigger": "template", "contents": "template: `\n$1\n`" }, 13 | { "trigger": "templateUrl", "contents": "templateUrl: '$1'" }, 14 | { "trigger": "styles", "contents": "styles: `\n$1\n`" }, 15 | { "trigger": "styleUrls", "contents": "styleUrls: [\n '$1'\n]" }, 16 | { "trigger": "directives", "contents": "directives: [\n $1\n]" }, 17 | { "trigger": "pipes", "contents": "pipes: [\n $1\n]" }, 18 | { "trigger": "properties", "contents": "properties: [\n '$1'\n]" }, 19 | { "trigger": "host", "contents": "host: {\n '$1': '$2'\n}" }, 20 | 21 | // Decorators 22 | { "trigger": "@Inject", "contents": "@Inject($1) $2" }, 23 | { "trigger": "@Input", "contents": "@Input($1) $2" }, 24 | { "trigger": "@Output", "contents": "@Output($1) $2 = $3" }, 25 | { "trigger": "@HostBinding", "contents": "@HostBinding($1) $2" }, 26 | { "trigger": "@HostListener", "contents": "@HostListener('$1', ['$2'])" }, 27 | { "trigger": "@ContentChild", "contents": "@ContentChild($1)" }, 28 | { "trigger": "@ContentChildren", "contents": "@ContentChildren($1)" }, 29 | { "trigger": "@ViewChild", "contents": "@ViewChild($1)" }, 30 | { "trigger": "@ViewChildren", "contents": "@ViewChildren($1)" }, 31 | 32 | // Lifecycle 33 | { "trigger": "constructor", "contents": "constructor($1) {\n $2\n}" }, 34 | { "trigger": "ngOnChanges", "contents": "ngOnChanges($1) {\n $2\n}" }, 35 | { "trigger": "ngOnInit", "contents": "ngOnInit($1) {\n $2\n}" }, 36 | { "trigger": "ngDoCheck", "contents": "ngDoCheck($1) {\n $2\n}" }, 37 | { "trigger": "ngAfterContentInit", "contents": "ngAfterContentInit($1) {\n $2\n}" }, 38 | { "trigger": "ngAfterContentChecked", "contents": "ngAfterContentChecked($1) {\n $2\n}" }, 39 | { "trigger": "ngAfterViewInit", "contents": "ngAfterViewInit($1) {\n $2\n}" }, 40 | { "trigger": "ngAfterViewChecked", "contents": "ngAfterViewChecked($1) {\n $2\n}" }, 41 | { "trigger": "ngOnDestroy", "contents": "ngOnDestroy($1) {\n $2\n}" }, 42 | 43 | // Routing 44 | { "trigger": "@CanActivate", "contents": "@CanActivate($1)" }, 45 | { "trigger": "routerOnActivate", "contents": "routerOnActivate($1) {\n $2\n}" }, 46 | { "trigger": "routerCanReuse", "contents": "routerCanReuse($1) {\n $2\n}" }, 47 | { "trigger": "routerOnReuse", "contents": "routerOnReuse($1) {\n $2\n}" }, 48 | { "trigger": "routerCanDeactivate", "contents": "routerCanDeactivate($1) {\n $2\n}" }, 49 | { "trigger": "routerOnDeactivate", "contents": "routerOnDeactivate($1) {\n $2\n}" } 50 | ] 51 | } 52 | -------------------------------------------------------------------------------- /html/ngclass-binding.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngClass 4 | text.html, source.js, source.ts 5 | [] - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngclass-star.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | *ngClass 4 | text.html, source.js, source.ts 5 | * - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngfor-star.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngFor 4 | text.html, source.js, source.ts 5 | * - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngforof-binding.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngForOf 4 | text.html, source.js, source.ts 5 | [] - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngif-binding.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngIf 4 | text.html, source.js, source.ts 5 | [] - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngif-star.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngIf 4 | text.html, source.js, source.ts 5 | * - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngmodel-2way.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngModel 4 | text.html, source.js, source.ts 5 | [()] - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngmodel-binding.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngModel 4 | text.html, source.js, source.ts 5 | [] - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngmodelchange-event.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngModelChange 4 | text.html, source.js, source.ts 5 | () - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngstyle-binding.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngStyle 4 | text.html, source.js, source.ts 5 | [] - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngswitch-binding.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngSwitch 4 | text.html, source.js, source.ts 5 | [] - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngswitchdefault-binding.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngSwitchDefault 4 | text.html, source.js, source.ts 5 | [] - Angular2 6 | 7 | -------------------------------------------------------------------------------- /html/ngswitchwhen-binding.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | ngSwitchWhen 4 | text.html, source.js, source.ts 5 | [] - Angular2 6 | 7 | -------------------------------------------------------------------------------- /snippets/component-basic.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 10 | component 11 | source.js, source.ts 12 | @Component (Basic) - Angular2 13 | 14 | -------------------------------------------------------------------------------- /snippets/component-complex.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 16 | component 17 | source.js, source.ts 18 | @Component (Complex) - Angular2 19 | 20 | -------------------------------------------------------------------------------- /snippets/component-external.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 10 | component 11 | source.js, source.ts 12 | @Component (External) - Angular2 13 | 14 | -------------------------------------------------------------------------------- /snippets/component.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | component 7 | source.js, source.ts 8 | @Component - Angular2 9 | 10 | -------------------------------------------------------------------------------- /snippets/directive-basic.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 8 | directive 9 | source.js, source.ts 10 | @Directive (Basic) - Angular2 11 | 12 | -------------------------------------------------------------------------------- /snippets/directive-complex.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 11 | directive 12 | source.js, source.ts 13 | @Directive (Complex) - Angular2 14 | 15 | -------------------------------------------------------------------------------- /snippets/directive.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | directive 7 | source.js, source.ts 8 | @Directive - Angular2 9 | 10 | -------------------------------------------------------------------------------- /snippets/pipe-es6.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 8 | pipe 9 | source.js, source.ts 10 | Pipe (ES6) 11 | 12 | -------------------------------------------------------------------------------- /snippets/pipe.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 8 | pipe 9 | source.js, source.ts 10 | Pipe 11 | 12 | -------------------------------------------------------------------------------- /snippets/route-data.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 10 | route 11 | source.js, source.ts 12 | Route (Data) 13 | 14 | -------------------------------------------------------------------------------- /snippets/route-default.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 10 | route 11 | source.js, source.ts 12 | Route (Default) 13 | 14 | -------------------------------------------------------------------------------- /snippets/route-param.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 9 | route 10 | source.js, source.ts 11 | Route (Param) 12 | 13 | -------------------------------------------------------------------------------- /snippets/route-parent.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 9 | route 10 | source.js, source.ts 11 | Route (Parent) 12 | 13 | -------------------------------------------------------------------------------- /snippets/route-redirect.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 8 | route 9 | source.js, source.ts 10 | Route (Redirect) 11 | 12 | -------------------------------------------------------------------------------- /snippets/route-wildcard.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 9 | route 10 | source.js, source.ts 11 | Route (Wildcard) 12 | 13 | -------------------------------------------------------------------------------- /snippets/route.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 9 | route 10 | source.js, source.ts 11 | Route 12 | 13 | -------------------------------------------------------------------------------- /snippets/routeconfig-basic.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 11 | routeconfig 12 | source.js, source.ts 13 | @RouteConfig (Basic) 14 | 15 | -------------------------------------------------------------------------------- /snippets/routeconfig.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 7 | routeconfig 8 | source.js, source.ts 9 | @RouteConfig 10 | 11 | -------------------------------------------------------------------------------- /snippets/service.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | service 7 | source.js, source.ts 8 | Service - Angular2 9 | --------------------------------------------------------------------------------