Let's install and add Angular Flex layout to our project:
- In the terminal, execute npm i @angular/flex-layout
At the time of publishing, the current release of
@angular/flex-layout is version
5.0.0-beta.14, which causes numerous peer dependency errors. To get around these errors, execute
npm i @angular/flex-layout@next to install version
6.0.0-beta.15, as mentioned in
Chapter 4,
Staying Up to Date with Angular Updates.
- Update app.module.ts, as shown:
src/app.module.tsimport { FlexLayoutModule } from '@angular/flex-layout'imports: [... FlexLayoutModule,],