parent
667b55fcf9
commit
a7e47f98d2
@ -0,0 +1,2 @@ |
||||
export * from "./notes.component"; |
||||
export * from "./notes.module" |
@ -0,0 +1 @@ |
||||
<h2>Liste de vos notes</h2> |
@ -0,0 +1,17 @@ |
||||
import { Component, OnInit } from "@angular/core"; |
||||
import { NotesService } from "@shared/api-swagger"; |
||||
|
||||
@Component({ |
||||
selector: "app-notes", |
||||
templateUrl: "./notes.component.html" |
||||
}) |
||||
export class NotesComponent implements OnInit { |
||||
|
||||
|
||||
|
||||
constructor(private notesService: NotesService) { |
||||
|
||||
} |
||||
|
||||
ngOnInit() {} |
||||
} |
@ -0,0 +1,23 @@ |
||||
import { NgModule } from "@angular/core"; |
||||
import { CommonModule } from "@angular/common"; |
||||
import { RouterModule } from '@angular/router'; |
||||
import { NotesRoutingModule } from "./notes.routing.module"; |
||||
import { MaterialModule } from "@shared/angular-material/angular-material.module"; |
||||
|
||||
import {NavMenuModule} from '@shared/nav-menu/nav-menu.module'; |
||||
import { NotesComponent } from "./notes.component"; |
||||
|
||||
@NgModule({ |
||||
declarations: [
|
||||
NotesComponent |
||||
], |
||||
imports: [ |
||||
CommonModule, |
||||
MaterialModule, |
||||
NavMenuModule, |
||||
RouterModule, |
||||
NotesRoutingModule, |
||||
|
||||
], |
||||
}) |
||||
export class NotesModule {} |
@ -0,0 +1,20 @@ |
||||
import { NgModule } from '@angular/core'; |
||||
import { Routes, RouterModule } from '@angular/router'; |
||||
|
||||
import { NotesComponent } from "./notes.component"; |
||||
|
||||
import { AuthGuard } from "@shared/auth/auth.guard"; |
||||
|
||||
|
||||
import { paths_notes } from "@shared/utils/paths"; |
||||
|
||||
const routes: Routes = [ |
||||
{path: paths_notes.notesAuteur, component: NotesComponent, canActivate: [AuthGuard]}, |
||||
] |
||||
|
||||
|
||||
@NgModule({ |
||||
imports: [RouterModule.forChild(routes)], |
||||
exports: [RouterModule] |
||||
}) |
||||
export class NotesRoutingModule {} |
Loading…
Reference in new issue