- Notifications
You must be signed in to change notification settings - Fork768
Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API
License
angular/flex-layout
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NOTE: The Angular team no longer publishes new releases of this project. Please reviewthis blog postfor alternatives, andthis article for the explanation and next steps.
Angular Flex Layout provides a sophisticated layout API using Flexbox CSS + mediaQuery.This module provides Angular developers with component layout features using acustom Layout API, mediaQuery observables, and injected DOM flexbox-2016 CSS stylings.
The Flex Layout engine intelligently automates the process of applying appropriateFlexbox CSS to browser view hierarchies. This automation also addresses many of thecomplexities and workarounds encountered with the traditional, manual, CSS-only application of box CSS.
Thereal power of Flex Layout, however, is itsresponsive engine. TheResponsive API enables developers to easily specifydifferent layouts, sizing, visibilities for different viewport sizes and display devices.
Start by installing the Angular Layout library fromnpm
npm i -s @angular/flex-layout @angular/cdk
Next, you'll need to import the Layout module in your app's module.
app.module.ts
import{FlexLayoutModule}from'@angular/flex-layout';...@NgModule({ ...imports:[FlexLayoutModule], ...});
After that is configured, you can use the Angular Layout attributes in your HTML tags for flex layout:
<divfxLayout="row"fxLayoutAlign="space-between"></div>
Check outall of the available options for using Angular Layout in your application.
The sources for this package are in theFlex Layout repository.
Please file issues and pull requests against that repo.
License: MIT
About
Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API