import { Component , Input , Output , ChangeDetectionStrategy , EventEmitter } from "@angular/core" ; @ Component ( { selector : 'users' , template : `
        <simple-list
            [list]="data"
            [content]="getContent"
            (current)="current.emit($event)"></simple-list>
    ` , changeDetection : ChangeDetectionStrategy . OnPush } ) export class UsersView { @ Input ( ) data = { } ; @ Output ( ) current : EventEmitter < any > = new EventEmitter ( ) ; getContent ( user ) { return user . name ; } }