November 2019
Beginner
804 pages
20h 1m
English
The page is almost ready to be displayed. So far, we haven't imported the FormModule and ReactiveFormsModule Angular modules. We need to do that now in the book module (that is, src/app/book/book.module.ts).
Last but not least, we also need to add BookPageComponent to the exports property of the module. If we don't, then we won't be able to use it from the outside later on!
Here's what your book.module.ts file should look like after these modifications:
... import { FormsModule, ReactiveFormsModule } from '@angular/forms'; @NgModule({ declarations: [BookPageComponent], imports: [ CommonModule, FormsModule, // <-- Add this line ReactiveFormsModule, // <-- Add this line ], exports: [BookPageComponent], // <-- Add this ...Read now
Unlock full access