Many Components require different styles based on a set of conditions. Angular 2 helps you style your Components by allows you to define Styles inline, then choosing which styles to use based on the current values in your Controller.
import {Component, Input} from 'angular2/core';@Component({ selector: 'todo-item-renderer', template: `{ {todo.title}}`})export class TodoItemRenderer{ @Input() todo}