view 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
line wrap: on
line source
import {Component, Inject} from '@angular/core';
import {MailService} from "./mail.service";

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'app works!';

  constructor(
    private mail: MailService,
    @Inject('piper-server-uri') private serverUri
  ) {}

  onUpdate(id, text) {
    this.mail.update(id, text);
  }
}