Skip to content
Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API
Branch: master
Clone or download
CaerusKaru fix(fxFlex): restore correct styles after fxLayoutAlign is applied (#…
…1038)

There is currently a race condition when `fxFlex` and `fxLayoutAlign`
are present on the same element. Both directives end up injecting
`max-width`/`max-height` stylings onto their host element, which
leads to a conflict when both are present.

The intended behavior is to have child elements take precandence
due to their higher specificity/importance, so this commit adds
a watcher for a sibling `fxLayoutAlign` in `fxFlex` to retrigger
styles.

Fixes #1038
Latest commit b245229 Mar 16, 2019
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
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): restore correct styles after fxLayoutAlign is applied (#… Mar 17, 2019
test build: switch to circleci (#905) Dec 13, 2018
tools build: UMD module references incorrect flex-layout globals (#978) Jan 10, 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 chore: update to 7.0.0-beta.23 with changelog (#968) Jan 10, 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 feat(demo): add demo to show fxHide with used with custom breakpoint (#… Jan 13, 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 feat(demo): add demo to show fxHide with used with custom breakpoint (#… Jan 13, 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.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.