import {Component} from '@angular/core'; @Component({ selector: 'chat-bubble', inputs: ['msg: message'], template: `
{{msg.content}}
{{msg.senderName}} , {{msg.time}}
` }) export class ChatBubble { msg constructor() { this.msg = { content : 'Am I dreaming?', position : 'left', time : '12/3/2016', senderName : 'Gregory' } } }