annotate src/app/app.component.ts @ 3:b4a1e0a67389

Playing around with material2
author Lucas Thompson <dev@lucas.im>
date Wed, 26 Oct 2016 11:42:58 +0100
parents 44c99e3cb108
children 7e3ab6f8792f
rev   line source
dev@1 1 import {Component, Inject} from '@angular/core';
dev@1 2 import {MailService} from "./mail.service";
angular-cli@0 3
angular-cli@0 4 @Component({
angular-cli@0 5 selector: 'app-root',
angular-cli@0 6 templateUrl: './app.component.html',
angular-cli@0 7 styleUrls: ['./app.component.css']
angular-cli@0 8 })
angular-cli@0 9 export class AppComponent {
dev@3 10 title = 'Ugly';
dev@1 11
dev@1 12 constructor(
dev@1 13 private mail: MailService,
dev@1 14 @Inject('piper-server-uri') private serverUri
dev@1 15 ) {}
dev@1 16
dev@1 17 onUpdate(id, text) {
dev@1 18 this.mail.update(id, text);
dev@1 19 }
angular-cli@0 20 }