diff --git a/docs/en/Tutorials/Angular/Part-II.md b/docs/en/Tutorials/Angular/Part-II.md index 4c147ad9bd..1dbfe9b5cd 100644 --- a/docs/en/Tutorials/Angular/Part-II.md +++ b/docs/en/Tutorials/Angular/Part-II.md @@ -249,12 +249,13 @@ export class BookListComponent implements OnInit { > The `NgbDateAdapter` converts Datepicker value to `Date` type. See the [datepicker adapters](https://ng-bootstrap.github.io/#/components/datepicker/overview) for more details. +#### Create the Book Type Array Open the `book-list.component.ts` and then create an array, named `bookTypeArr`: ```js //... -form: FormGroup; +booksType = Books.BookType; bookTypeArr = Object.keys(Books.BookType).filter( bookType => typeof this.booksType[bookType] === 'number'