Spaces:
Running
Running
| import { NgModule } from '@angular/core'; | |
| import { RouterModule, Routes } from '@angular/router'; | |
| import { Homepage } from './homepage/homepage'; | |
| import { Analysispage } from './analysispage/analysispage'; | |
| import { Chatbot } from './chatbot/chatbot'; | |
| import { ToolspageComponent } from './toolspage/toolspage.component'; | |
| import { Screenerpage } from './screenerpage/screenerpage'; | |
| import { AuthGuard } from './auth/auth.guard'; | |
| import { DashboardComponent } from './dashboard/dashboard.component'; | |
| import { CommunityComponent } from './community/community.component'; | |
| const routes: Routes = [ | |
| { path: '', component: Homepage }, | |
| { path: 'home', component: Homepage }, | |
| { path: 'dashboard', component: DashboardComponent }, | |
| { path: 'community', component: CommunityComponent }, | |
| { path: 'analysepage', component: Analysispage, canActivate: [AuthGuard] }, | |
| { path: 'chatbot', component: Chatbot }, | |
| { path: 'screener', component: Screenerpage }, | |
| { path: 'marketselect', component: ToolspageComponent }, | |
| { path: '**', redirectTo: '' } | |
| ]; | |
| ({ | |
| imports: [RouterModule.forRoot(routes)], | |
| exports: [RouterModule] | |
| }) | |
| export class AppRoutingModule { } | |