And just to clarify: if you need to include some directives, you should do it like this:
import {Component, Template, View, CSSClass, NgFor, bootstrap} from 'angular2/angular2'; // Component annotations .. @Component({ selector: 'my-app' }) @Template({ url: 'templates/layout.html' }) @View({ directives: [CSSClass, NgFor] })
and then in the code you can use [class], * ng-for, etc. :)
source share