Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 316 Bytes
import { Inject, Injectable } from "../angular-decorators";
@Injectable("notifier")
export class NotifierService
{
@Inject() $window;
msgs = [];
notify(msg)
{
this.msgs.push(msg);
if (this.msgs.length === 3)
{
this.$window.alert(this.msgs.join('\n'));
this.msgs = [];
}
}
}
You can’t perform that action at this time.