import { Component , View , Pipe } from 'angular2/angular2' ; @ Pipe ( { name : 'capitalize' } ) export class Capitalize { transform ( value , args ) { return value . charAt ( 0 ) . toUpperCase ( ) + value . slice ( 1 ) ; } }