Skip to content
Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API
TypeScript HTML JavaScript CSS Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci fix(CI): reenable saucelabs testing (#924) Dec 16, 2018
.github chore: introduce GitHub Issue and Pull Request templates Jun 7, 2018
docs feat(core): add print support with mediaQuery override (#954) Jan 2, 2019
guides feat(lib): add config options for flex basis and other tokens May 31, 2018
scripts build: switch to circleci (#905) Dec 13, 2018
src fix(fxFlex): use correct type for basis validation in reflow case (#1095 Jul 4, 2019
test build: switch to circleci (#905) Dec 13, 2018
tools build: upgrade to Angular v8 final RC w/ release fix (#1068) May 24, 2019
.clang-format update(yarn, build, tests): prepare for testing Nov 4, 2016
.editorconfig chore(config): update development configs (#31) Dec 14, 2016
.gitignore update(build): upgrade to Angular v7.2 and TypeScript v3.2 (#976) Jan 10, 2019
CHANGELOG.md build: upgrade to Angular v8 final RC w/ release fix (#1068) May 24, 2019
CODE_REVIEWS.md docs: cleanup the Wiki and add missing docs Jan 20, 2018
CODING_STANDARDS.md docs: change reference from RxJS "lettable" to "pipeable" Feb 1, 2018
CONTRIBUTING.md chore: add CONTRIBUTING guidelines Jan 15, 2018
LICENSE chore: bump year (#965) Jan 2, 2019
README.md Update to links. Jan 24, 2019
build-config.js build: move angular version to package.json (#794) Jul 25, 2018
firebase.json chore(build): update build to match ngM2 build processes (#342) Jul 27, 2017
gulpfile.js chore(build): update build to match ngM2 build processes (#342) Jul 27, 2017
package.json build: upgrade to Angular v8 final RC w/ release fix (#1068) May 24, 2019
stylelint-config.json feat(core): add static scss mixin (#940) Dec 19, 2018
tsconfig.json build: upgrade to Angular and Material v7 and add strict flags (#855) Oct 5, 2018
tslint.json feat(core): MediaObserver can report 1..n activations (#994) Jan 15, 2019
yarn.lock build: upgrade to Angular v8 final RC w/ release fix (#1068) May 24, 2019

README.md

Angular Flex-Layout

npm version Build status Gitter

Angular Flex Layout provides a sophisticated layout API using Flexbox CSS + mediaQuery. This module provides Angular developers with component layout features using a custom Layout API, mediaQuery observables, and injected DOM flexbox-2016 CSS stylings.

The Flex 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 box 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.


Getting Started

Start by installing the Angular Layout library from npm

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:

<div fxLayout="row" fxLayoutAlign="space-between">
</div>

Check out all of the available options for using Angular Layout in your application.


Quick Links

Demos

StackBlitz Templates

Developers


Browser Support

  caniuseflexbox



License

The sources for this package are in the Flex Layout repository.
Please file issues and pull requests against that repo.

License: MIT

You can’t perform that action at this time.