comparison 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
comparison
equal deleted inserted replaced
0:340ce94899fd 1:44c99e3cb108
1 import { Component } from '@angular/core'; 1 import {Component, Inject} from '@angular/core';
2 import {MailService} from "./mail.service";
2 3
3 @Component({ 4 @Component({
4 selector: 'app-root', 5 selector: 'app-root',
5 templateUrl: './app.component.html', 6 templateUrl: './app.component.html',
6 styleUrls: ['./app.component.css'] 7 styleUrls: ['./app.component.css']
7 }) 8 })
8 export class AppComponent { 9 export class AppComponent {
9 title = 'app works!'; 10 title = 'app works!';
11
12 constructor(
13 private mail: MailService,
14 @Inject('piper-server-uri') private serverUri
15 ) {}
16
17 onUpdate(id, text) {
18 this.mail.update(id, text);
19 }
10 } 20 }