start of message service

This commit is contained in:
Jesse Lucas
2020-04-09 13:01:06 -04:00
parent 632b6f8fbd
commit ac603e9228
2 changed files with 30 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { Injectable } from '@angular/core';
@Injectable()
export class MessageService {
messages: string[] = [];
add(message: string) {
this.messages.push(message);
}
clear() {
this.messages = [];
}
}