mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
fix(demo): rename toaster to notifications
This commit is contained in:
parent
ef994704c2
commit
2e186f2bd6
5 changed files with 11 additions and 10 deletions
|
|
@ -3,7 +3,7 @@ import { Routes, RouterModule } from '@angular/router';
|
|||
|
||||
import { ComponentsComponent } from './components.component';
|
||||
import { TreeComponent } from './tree/tree.component';
|
||||
import { ToasterComponent } from './toaster/toaster.component';
|
||||
import { NotificationsComponent } from './notifications/notifications.component';
|
||||
|
||||
const routes: Routes = [{
|
||||
path: '',
|
||||
|
|
@ -13,8 +13,8 @@ const routes: Routes = [{
|
|||
path: 'tree',
|
||||
component: TreeComponent,
|
||||
}, {
|
||||
path: 'toaster',
|
||||
component: ToasterComponent,
|
||||
path: 'notifications',
|
||||
component: NotificationsComponent,
|
||||
},
|
||||
],
|
||||
}];
|
||||
|
|
@ -28,5 +28,5 @@ export class ComponentsRoutingModule { }
|
|||
export const routedComponents = [
|
||||
ComponentsComponent,
|
||||
TreeComponent,
|
||||
ToasterComponent,
|
||||
NotificationsComponent,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
</nga-card-header>
|
||||
<nga-card-body>
|
||||
<toaster-container [toasterconfig]="config"></toaster-container>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-control-label">Place to show toast:</label>
|
||||
<select class="form-control" [(ngModel)]="position" name="position">
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { ToasterService, ToasterConfig, Toast } from 'angular2-toaster';
|
||||
|
||||
import 'style-loader!angular2-toaster/toaster.css';
|
||||
// import 'style-loader!angular2-notifications/notifications.css';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-toasters',
|
||||
styleUrls: ['toaster.component.scss'],
|
||||
templateUrl: 'toaster.component.html',
|
||||
selector: 'ngx-notifications',
|
||||
styleUrls: ['./notifications.component.scss'],
|
||||
templateUrl: './notifications.component.html',
|
||||
})
|
||||
export class ToasterComponent {
|
||||
export class NotificationsComponent {
|
||||
constructor(private toasterService: ToasterService) {}
|
||||
|
||||
title: string = 'HI there!';
|
||||
|
|
@ -57,7 +57,7 @@ export const MENU_ITEMS: List<NgaMenuItem> = List([
|
|||
link: '/pages/components/tree',
|
||||
}, {
|
||||
title: 'Toaster',
|
||||
link: '/pages/components/toaster',
|
||||
link: '/pages/components/notifications',
|
||||
},
|
||||
]),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue