Skip to content

Basic Directive Template

Joshua Wiens edited this page Mar 7, 2016 · 2 revisions

Usage

  1. Type "ng2" which will bring up the templates list & "d" to scope to Directive Templates
  2. Arrow key to ng2directiveBasic and hit enter
  3. Type desired selector and hit enter
  4. Type desired class name and hit enter

Pro Tip - Add missing module imports using the WebStorm Shortcut " alt/option + enter "

Demo