diff --git a/src/app/components/create-book/create-book.html b/src/app/components/create-book/create-book.html index 7df8a6a..e69ce5c 100644 --- a/src/app/components/create-book/create-book.html +++ b/src/app/components/create-book/create-book.html @@ -1,33 +1,37 @@ -
+ - Nom + Titre - + - Prénom + Date de publication - + + + + + + + Auteur + + + + - - - - - -
- - \ No newline at end of file + \ No newline at end of file diff --git a/src/app/components/create-book/create-book.ts b/src/app/components/create-book/create-book.ts index 20de703..c2d0077 100644 --- a/src/app/components/create-book/create-book.ts +++ b/src/app/components/create-book/create-book.ts @@ -1,10 +1,11 @@ import { Component } from '@angular/core'; import {NzFormModule} from "ng-zorro-antd/form"; -import {FormControl, FormGroup, Validators} from "@angular/forms"; +import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms"; +import {NzFlexDirective} from "ng-zorro-antd/flex"; @Component({ selector: 'app-create-book', - imports: [NzFormModule], + imports: [NzFormModule, ReactiveFormsModule, NzFlexDirective], templateUrl: './create-book.html', styleUrl: './create-book.css', }) diff --git a/src/app/pages/welcome/welcome.html b/src/app/pages/welcome/welcome.html index c287a17..58b3c50 100644 --- a/src/app/pages/welcome/welcome.html +++ b/src/app/pages/welcome/welcome.html @@ -2,4 +2,6 @@

Hello world! -

\ No newline at end of file + + + \ No newline at end of file diff --git a/src/app/pages/welcome/welcome.ts b/src/app/pages/welcome/welcome.ts index 92e8bde..91c99e1 100644 --- a/src/app/pages/welcome/welcome.ts +++ b/src/app/pages/welcome/welcome.ts @@ -1,8 +1,11 @@ import { Component } from '@angular/core'; +import {CreateBook} from "../../components/create-book/create-book"; @Component({ selector: 'app-welcome', - imports: [], + imports: [ + CreateBook + ], templateUrl: './welcome.html', styleUrl: './welcome.css' })