Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1411db0

Browse files
committed
chore: update test-bed app
1 parent05c6eba commit1411db0

File tree

9 files changed

+762
-1
lines changed

9 files changed

+762
-1
lines changed

‎src/app/_nav.ts‎

Lines changed: 21 additions & 0 deletions
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‎

Lines changed: 4 additions & 0 deletions
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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
</app-aside>
2828
</div>
2929
<app-footer>
30-
<span><ahref="https://coreui.io">CoreUI</a> &copy;2022 creativeLabs.</span>
30+
<span><ahref="https://coreui.io">CoreUI</a> &copy;2023 creativeLabs.</span>
3131
<spanclass="ml-auto">Powered by<ahref="https://coreui.io/angular">CoreUI 2 for Angular</a></span>
3232
</app-footer>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<divclass="animated fadeIn">
2+
<divclass="row">
3+
<divclass="col-12">
4+
Brand buttons work!
5+
</div>
6+
</div>
7+
</div>
Lines changed: 10 additions & 0 deletions
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+
exportclassBrandButtonsComponent{
7+
8+
constructor(){}
9+
10+
}
Lines changed: 41 additions & 0 deletions
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+
constroutes: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+
exportclassButtonsRoutingModule{}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp