Skip to content

Commit 1411db0

Browse files
committed
chore: update test-bed app
1 parent 05c6eba commit 1411db0

9 files changed

+762
-1
lines changed

src/app/_nav.ts

+21
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,27 @@ export const navItems: INavData[] = [
2020
icon: 'icon-ban',
2121
attributes: { disabled: true },
2222
},
23+
{
24+
title: true,
25+
name: 'Components'
26+
},
27+
{
28+
name: 'Buttons',
29+
url: '/buttons',
30+
icon: 'icon-cursor',
31+
children: [
32+
{
33+
name: 'Buttons',
34+
url: '/buttons/buttons',
35+
icon: 'icon-cursor'
36+
},
37+
{
38+
name: 'Brand Buttons',
39+
url: '/buttons/brand-buttons',
40+
icon: 'icon-cursor'
41+
}
42+
]
43+
},
2344
{
2445
name: 'Download CoreUI',
2546
url: 'http://coreui.io/angular/',

src/app/app.routing.ts

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const routes: Routes = [
2020
{
2121
path: 'dashboard',
2222
loadChildren: () => import('./views/dashboard/dashboard.module').then(m => m.DashboardModule)
23+
},
24+
{
25+
path: 'buttons',
26+
loadChildren: () => import('./views/buttons/buttons.module').then(m => m.ButtonsModule)
2327
}
2428
]
2529
},

src/app/containers/default-layout/default-layout.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
</app-aside>
2828
</div>
2929
<app-footer>
30-
<span><a href="https://coreui.io">CoreUI</a> &copy; 2022 creativeLabs.</span>
30+
<span><a href="https://coreui.io">CoreUI</a> &copy; 2023 creativeLabs.</span>
3131
<span class="ml-auto">Powered by <a href="https://coreui.io/angular">CoreUI 2 for Angular</a></span>
3232
</app-footer>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div class="animated fadeIn">
2+
<div class="row">
3+
<div class="col-12">
4+
Brand buttons work!
5+
</div>
6+
</div>
7+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
templateUrl: 'brand-buttons.component.html'
5+
})
6+
export class BrandButtonsComponent {
7+
8+
constructor() { }
9+
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { NgModule } from '@angular/core';
2+
import { Routes, RouterModule } from '@angular/router';
3+
4+
import { ButtonsComponent } from './buttons.component';
5+
import { BrandButtonsComponent } from './brand-buttons.component';
6+
7+
const routes: Routes = [
8+
{
9+
path: '',
10+
data: {
11+
title: 'Buttons'
12+
},
13+
children: [
14+
{
15+
path: '',
16+
redirectTo: 'buttons',
17+
pathMatch: 'prefix',
18+
},
19+
{
20+
path: 'buttons',
21+
component: ButtonsComponent,
22+
data: {
23+
title: 'Buttons'
24+
}
25+
},
26+
{
27+
path: 'brand-buttons',
28+
component: BrandButtonsComponent,
29+
data: {
30+
title: 'Brand buttons'
31+
}
32+
}
33+
]
34+
}
35+
];
36+
37+
@NgModule({
38+
imports: [RouterModule.forChild(routes)],
39+
exports: [RouterModule]
40+
})
41+
export class ButtonsRoutingModule {}

0 commit comments

Comments
 (0)