6 - Angular Material

In this section we will explore Angular Material and installing third party dependencies

Angular Material Website

https://material.angular.io/

1. Install angular material, angular animations and angular flex layout

Note: As of Angular v6 you no longer need to manually add Angular material you can use the new "Add" CLI command. However this is not how you do it with Nx.

Always use the same Major version of Material as your Angular CLI and packages.

  • Add animations module to the main app module.

2. Add a new Nx lib to hold all the common material components we will use in our apps

  • Add all the common material components and re-export them

  • Add material module to auth module

3. Add material default styles

  • Update the login-form to use material components

4. Go and explore flex layout docs

  • Go to this website and try out the flex examples.

https://tburleson-layouts-demos.firebaseapp.com/#/docs

flex-layout library examples

Last updated