Skip to content

Commit fa8c9c7

Browse files
committed
small changes
1 parent bfc5cab commit fa8c9c7

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/app/app.module.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,12 @@ import { AppRoutingModule } from './app.routing';
88
import { NavbarModule } from './shared/navbar/navbar.module';
99
import { FooterModule } from './shared/footer/footer.module';
1010
import { SidebarModule } from './sidebar/sidebar.module';
11-
import { LbdModule } from './lbd/lbd.module';
1211

1312
import { AppComponent } from './app.component';
1413

1514
import { AdminLayoutComponent } from './layouts/admin-layout/admin-layout.component';
1615

1716
@NgModule({
18-
declarations: [
19-
AppComponent,
20-
AdminLayoutComponent
21-
],
2217
imports: [
2318
BrowserAnimationsModule,
2419
FormsModule,
@@ -29,6 +24,10 @@ import { AdminLayoutComponent } from './layouts/admin-layout/admin-layout.compon
2924
SidebarModule,
3025
AppRoutingModule
3126
],
27+
declarations: [
28+
AppComponent,
29+
AdminLayoutComponent
30+
],
3231
providers: [],
3332
bootstrap: [AppComponent]
3433
})

src/app/layouts/admin-layout/admin-layout.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export class AdminLayoutComponent implements OnInit {
2020
constructor( public location: Location, private router: Router) {}
2121

2222
ngOnInit() {
23+
console.log(this.router)
2324
const isWindows = navigator.platform.indexOf('Win') > -1 ? true : false;
2425

2526
if (isWindows && !document.getElementsByTagName('body')[0].classList.contains('sidebar-mini')) {

src/app/layouts/admin-layout/admin-layout.routing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { UpgradeComponent } from '../../upgrade/upgrade.component';
1111

1212
export const AdminLayoutRoutes: Routes = [
1313
{ path: 'dashboard', component: HomeComponent },
14-
{ path: 'user', component: UserComponent },
15-
{ path: 'table', component: TablesComponent },
14+
{ path: 'user', component: UserComponent },
15+
{ path: 'table', component: TablesComponent },
1616
{ path: 'typography', component: TypographyComponent },
1717
{ path: 'icons', component: IconsComponent },
1818
{ path: 'maps', component: MapsComponent },

src/app/sidebar/sidebar.component.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ declare interface RouteInfo {
88
class: string;
99
}
1010
export const ROUTES: RouteInfo[] = [
11-
{ path: 'dashboard', title: 'Dashboard', icon: 'pe-7s-graph', class: '' },
12-
{ path: 'user', title: 'User Profile', icon:'pe-7s-user', class: '' },
13-
{ path: 'table', title: 'Table List', icon:'pe-7s-note2', class: '' },
14-
{ path: 'typography', title: 'Typography', icon:'pe-7s-news-paper', class: '' },
15-
{ path: 'icons', title: 'Icons', icon:'pe-7s-science', class: '' },
16-
{ path: 'maps', title: 'Maps', icon:'pe-7s-map-marker', class: '' },
17-
{ path: 'notifications', title: 'Notifications', icon:'pe-7s-bell', class: '' },
18-
{ path: 'upgrade', title: 'Upgrade to PRO', icon:'pe-7s-rocket', class: 'active-pro' },
11+
{ path: '/dashboard', title: 'Dashboard', icon: 'pe-7s-graph', class: '' },
12+
{ path: '/user', title: 'User Profile', icon:'pe-7s-user', class: '' },
13+
{ path: '/table', title: 'Table List', icon:'pe-7s-note2', class: '' },
14+
{ path: '/typography', title: 'Typography', icon:'pe-7s-news-paper', class: '' },
15+
{ path: '/icons', title: 'Icons', icon:'pe-7s-science', class: '' },
16+
{ path: '/maps', title: 'Maps', icon:'pe-7s-map-marker', class: '' },
17+
{ path: '/notifications', title: 'Notifications', icon:'pe-7s-bell', class: '' },
18+
{ path: '/upgrade', title: 'Upgrade to PRO', icon:'pe-7s-rocket', class: 'active-pro' },
1919
];
2020

2121
@Component({

0 commit comments

Comments
 (0)