Skip to content

Complex Component Template

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

Usage

  1. Type "ng2" which will bring up the templates list & "c" to scope to Component Templates
  2. Arrow key to ng2compComplex and hit enter
  3. Type desired selector prefix and hit enter
  4. Type desired selector name and hit enter
  5. Type desired style sheet extension and hit enter or just hit enter to accept the default (css)

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

Template & style URLs are based of the file name

Class name is based on the selector name

Demo