Angular 2 Flexbox Layout
Angular Flex Layout provides a sophisticated layout API using FlexBox CSS + mediaQuery. This module provides Angular (v2.x and higher) developers with component layout features using a custom Layout API, mediaQuery observables,and injected DOM flexbox-2016 css stylings.
The Layout engine intelligently automates the process of applying appropriate FlexBox CSS to browser view hierarchies. This automation also addresses many of the complexities and workarounds encountered with the traditional, manual, CSS-only application of Flexbox CSS.
The real power of Flex Layout, however, is its responsive engine. The Responsive API enables developers to easily specify different layouts, sizing, visibilities for different viewport sizes and display devices.
The sources for this package are in the Flex-Layout repository.
Please file issues and pull requests against that repo.
The latest release of Angular Flex-Layout can be installed from npm
npm install @angular/flex-layout
Playing with the latest changes from master is also possible
npm install https://github.com/angular/flex-layout-builds.git
Directive selectors are now camelCase (instead of dash-case); as specified in the Angular Style Guide (Q4, 2016):
Except when the directive is pretending to be a component (i.e, if it had a template it would be '').
@Component properties are not
While other Flexbox CSS libraries are implementations of:
Angular Flex Layout - in contrast - is a pure-Typescript UI Layout engine with an implementation that: