annotate src/app/app.component.ts @ 1:44c99e3cb108

App skelton generated with angular-cli, as well as a few experiments (to be deleted).
author Lucas Thompson <dev@lucas.im>
date Tue, 25 Oct 2016 14:42:26 +0100
parents 340ce94899fd
children b4a1e0a67389
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 {
angular-cli@0 10 title = 'app works!';
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 }