Skip to content

HTML Built in Directives

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

Usage

  1. Type "ng2" which will bring up the templates list & type the lower case first letter of what you are looking for or just use the arrow keys ( list of html built-ins is reasonably short )
  2. Hit the enter key & enter the name or appropriate expression

HTML Directives are scoped to HTML files only

Supported built-ins

  • ngFor
  • ngIF
  • ngSwitch
  • ngSwitchWhen
  • ngClass
  • ngModel

Demo

Built-ins Demo