-
Notifications
You must be signed in to change notification settings - Fork 20
Empty Directive Template
Joshua Wiens edited this page Mar 7, 2016
·
3 revisions
- Type "ng2" which will bring up the templates list & "d" to scope to Directive Templates
- Arrow key to ng2directive and hit enter
This is a bare bones @Directive, check the other Directive Templates for robust snippets
For the most basic Live Templates, it's just as productive if not more to just use the built-in completion provided with the TypeScript package.
- Type "@Direc" and hit enter
Here is why it's faster ...
import {Directive} from 'angular2/core';
The module import is added automatically to the top of the file. If an import for the 'angular2/core' module already exists, it is added to the list.
Component Templates
Directive Templates
HTML Built-in Directives
Pipe Templates
Route Configuration Templates
Route Templates
Service Template