comparison src/app/app.component.ts @ 22:3e96bcbfa5c5

Remove unused test service.
author Lucas Thompson <dev@lucas.im>
date Fri, 28 Oct 2016 17:21:58 +0100
parents 953932e9ba82
children 1ff1b5bdeb9e
comparison
equal deleted inserted replaced
21:d9c0a1ca005c 22:3e96bcbfa5c5
1 import {Component, Inject} from '@angular/core'; 1 import {Component, Inject} from '@angular/core';
2 import {MailService} from "./mail.service";
3 2
4 @Component({ 3 @Component({
5 selector: 'app-root', 4 selector: 'app-root',
6 templateUrl: './app.component.html', 5 templateUrl: './app.component.html',
7 styleUrls: ['./app.component.css'] 6 styleUrls: ['./app.component.css']
11 10
12 count = 0; 11 count = 0;
13 audioBuffer: AudioBuffer = undefined; 12 audioBuffer: AudioBuffer = undefined;
14 13
15 constructor( 14 constructor(
16 private mail: MailService,
17 @Inject('piper-server-uri') private serverUri 15 @Inject('piper-server-uri') private serverUri
18 ) {} 16 ) {}
19 17
20 onUpdate(id, text) { 18 onUpdate(id, text) {
21 this.mail.update(id, text);
22 } 19 }
23 20
24 onAudioLoaded(buffer: AudioBuffer) { 21 onAudioLoaded(buffer: AudioBuffer) {
25 this.audioBuffer = buffer; 22 this.audioBuffer = buffer;
26 this.count++; 23 this.count++;