parent
e7516a2188
commit
b340fd26ff
@ -0,0 +1,13 @@ |
||||
import { Component } from "@angular/core"; |
||||
|
||||
@Component({ |
||||
selector: "app-engagements", |
||||
templateUrl: "./engagements.html" |
||||
}) |
||||
export class EngagementsComponent { |
||||
|
||||
|
||||
constructor() {} |
||||
|
||||
|
||||
} |
@ -0,0 +1,3 @@ |
||||
<app-nav-menu></app-nav-menu> |
||||
|
||||
<h2>Liste des engagements</h2> |
@ -0,0 +1,25 @@ |
||||
import { NgModule } from "@angular/core"; |
||||
import { CommonModule } from "@angular/common"; |
||||
import { RouterModule } from '@angular/router'; |
||||
|
||||
import { MaterialModule } from "@shared/angular-material/angular-material.module"; |
||||
|
||||
import {NavMenuModule} from '@shared/nav-menu/nav-menu.module'; |
||||
import { EngagementsComponent } from "./engagements.component"; |
||||
import { EngagementsRoutingModule } from "./engagements.routing.module"; |
||||
|
||||
|
||||
|
||||
@NgModule({ |
||||
declarations: [ |
||||
EngagementsComponent |
||||
], |
||||
exports: [], |
||||
imports: [ |
||||
CommonModule, |
||||
RouterModule,
|
||||
NavMenuModule, |
||||
EngagementsRoutingModule |
||||
], |
||||
}) |
||||
export class EngagementsModule {} |
@ -0,0 +1,19 @@ |
||||
import { NgModule } from '@angular/core'; |
||||
import { Routes, RouterModule } from '@angular/router'; |
||||
|
||||
|
||||
import { EngagementsComponent } from "./engagements.component"; |
||||
|
||||
import { AuthGuard } from '@shared/auth/auth.guard'; |
||||
|
||||
|
||||
|
||||
const routes: Routes = [ |
||||
{ path: '', component: EngagementsComponent, pathMatch: 'full', canActivate: [AuthGuard]} |
||||
]; |
||||
|
||||
@NgModule({ |
||||
imports: [RouterModule.forChild(routes)], |
||||
exports: [RouterModule] |
||||
}) |
||||
export class EngagementsRoutingModule {} |
@ -0,0 +1,2 @@ |
||||
export * from './engagements.component'; |
||||
export * from './engagements.module'; |
Loading…
Reference in new issue