angular material flex layout code example

Example 1: import angular flex layout

npm install --save @angular/flex-layout @angular/cdk

Example 2: fxflex responsive example

<div fxLayout="row">
<div class="sub-section-1"></div>
<div class="sub-section-2"></div>
</div>

Example 3: angular flex layout

/* Answer to: "angular flex layout" */

/*
  Angular Flex Layout provides a sophisticated layout API using
  Flexbox CSS + mediaQuery. This module provides Angular developers
  ith component layout features using a custom Layout API,
  mediaQuery observables, and injected DOM flexbox-2016 CSS stylings.
  
  You can download it here: 
  https://www.npmjs.com/package/@angular/flex-layout
  
  It also has a github repository page:
  https://github.com/angular/flex-layout
  
  Don't forget to check out the wiki:
  https://github.com/angular/flex-layout/wiki
*/

Tags:

Misc Example