mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
added toaster
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
import { Angulartics2GoogleAnalytics } from 'angulartics2/ga';
|
||||
import { ToasterContainerComponent, ToasterConfig } from 'angular2-toaster';
|
||||
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
styles: [],
|
||||
template: '<router-outlet></router-outlet>',
|
||||
template: `
|
||||
<toaster-container [toasterconfig]="toasterConfig"></toaster-container>
|
||||
<router-outlet></router-outlet>`,
|
||||
})
|
||||
export class AppComponent {
|
||||
toasterConfig: ToasterConfig = new ToasterConfig({
|
||||
showCloseButton: true,
|
||||
mouseoverTimerStop: true,
|
||||
animation: 'flyRight',
|
||||
limit: 5,
|
||||
});
|
||||
|
||||
constructor(angulartics2GoogleAnalytics: Angulartics2GoogleAnalytics) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user