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 { ComponentsComponent } from './components.component';
|
||||||
import { TreeComponent } from './tree/tree.component';
|
import { TreeComponent } from './tree/tree.component';
|
||||||
import { ToasterComponent } from './toaster/toaster.component';
|
import { NotificationsComponent } from './notifications/notifications.component';
|
||||||
|
|
||||||
const routes: Routes = [{
|
const routes: Routes = [{
|
||||||
path: '',
|
path: '',
|
||||||
|
|
@ -13,8 +13,8 @@ const routes: Routes = [{
|
||||||
path: 'tree',
|
path: 'tree',
|
||||||
component: TreeComponent,
|
component: TreeComponent,
|
||||||
}, {
|
}, {
|
||||||
path: 'toaster',
|
path: 'notifications',
|
||||||
component: ToasterComponent,
|
component: NotificationsComponent,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}];
|
}];
|
||||||
|
|
@ -28,5 +28,5 @@ export class ComponentsRoutingModule { }
|
||||||
export const routedComponents = [
|
export const routedComponents = [
|
||||||
ComponentsComponent,
|
ComponentsComponent,
|
||||||
TreeComponent,
|
TreeComponent,
|
||||||
ToasterComponent,
|
NotificationsComponent,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
</nga-card-header>
|
</nga-card-header>
|
||||||
<nga-card-body>
|
<nga-card-body>
|
||||||
<toaster-container [toasterconfig]="config"></toaster-container>
|
<toaster-container [toasterconfig]="config"></toaster-container>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="form-control-label">Place to show toast:</label>
|
<label class="form-control-label">Place to show toast:</label>
|
||||||
<select class="form-control" [(ngModel)]="position" name="position">
|
<select class="form-control" [(ngModel)]="position" name="position">
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ToasterService, ToasterConfig, Toast } from 'angular2-toaster';
|
import { ToasterService, ToasterConfig, Toast } from 'angular2-toaster';
|
||||||
|
|
||||||
import 'style-loader!angular2-toaster/toaster.css';
|
// import 'style-loader!angular2-notifications/notifications.css';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ngx-toasters',
|
selector: 'ngx-notifications',
|
||||||
styleUrls: ['toaster.component.scss'],
|
styleUrls: ['./notifications.component.scss'],
|
||||||
templateUrl: 'toaster.component.html',
|
templateUrl: './notifications.component.html',
|
||||||
})
|
})
|
||||||
export class ToasterComponent {
|
export class NotificationsComponent {
|
||||||
constructor(private toasterService: ToasterService) {}
|
constructor(private toasterService: ToasterService) {}
|
||||||
|
|
||||||
title: string = 'HI there!';
|
title: string = 'HI there!';
|
||||||
|
|
@ -57,7 +57,7 @@ export const MENU_ITEMS: List<NgaMenuItem> = List([
|
||||||
link: '/pages/components/tree',
|
link: '/pages/components/tree',
|
||||||
}, {
|
}, {
|
||||||
title: 'Toaster',
|
title: 'Toaster',
|
||||||
link: '/pages/components/toaster',
|
link: '/pages/components/notifications',
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue