angular /flex-layout
Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API
★ 5,814⑂ 740👁 5⑃ 465● 980▤ 27
-2
日增长
5,814
stars
740
forks
5
watchers
465
prs
980
issues
27
releases
README
Angular Flex-Layout
NOTE: The Angular team no longer publishes new releases of this project. Please review this blog post
for alternatives, and this 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 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
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:
html
Check out all of the available options for using Angular Layout in your application.
---
Quick Links
ChangeLog
Wiki Documentation
Demos
Explore Examples Online
Demo Source Code
StackBlitz Templates
Flex-Layout Template
Flex-Layout + Material
Developers
API Documentation
Developer Setup
Builds + Fast Start
Integration with Angular CLI
----
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: MITTop issues
#1426Angular Layout Migration Guides107 comments · 2022-10-17#835Stop beta39 comments · 2018-09-06#713Change this repository name36 comments · 2018-04-14#171router-outlet issues27 comments · 2017-02-08#142Remove elements/components from DOM instead of CSS-hiding24 comments · 2017-01-29#1434Why not continue flex-layout development with a community maintained fork?23 comments · 2023-01-03#899Container Query / Relative query to an anchor20 comments · 2018-12-03#1299Consider using classes in favor of inline styles where possible18 comments · 2020-10-20