app.module.ts
1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule, Routes } from '@angular/router';
import {HttpModule} from '@angular/http';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import {SiteMenuComponent} from './shared/site-menu.component';
import {SiteFooterComponent} from './shared/site-footer.component';
import {LoginComponent} from './pages/login.component';
import {UpdatePasswordComponent} from './pages/update-password.component';
import { DashboardComponent } from './pages/dashboard.component';
import { UpdateAdminProfileComponent } from './pages/admin-update-profile.component';
const appRoutes: Routes = [
{ path: '', component: DashboardComponent },
{ path: 'dashboard', redirectTo: '', pathMatch: 'full' },
//{ path: 'login', component: LoginComponent },
//{ path: 'login/:slug', component: LoginComponent }
{ path: 'admin-update-prodile', component: UpdateAdminProfileComponent }
];
@NgModule({
imports: [
BrowserModule,
HttpModule,
RouterModule.forRoot(appRoutes),
FormsModule
],
declarations: [
AppComponent,
SiteMenuComponent,
SiteFooterComponent,
DashboardComponent,
//LoginComponent,
UpdatePasswordComponent,
UpdateAdminProfileComponent
],
bootstrap: [ AppComponent ]
})
export class AppModule { }