Angular Flex-Layout

为 Angular 应用程序提供 HTML UI 布局; 使用 Flexbox 和响应式 API。「Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API」

Github星跟蹤圖

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.


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

主要指標

概覽
名稱與所有者angular/flex-layout
主編程語言TypeScript
編程語言JavaScript (語言數: 5)
平台Linux, Mac, Web browsers, Windows
許可證MIT License
所有者活动
創建於2015-11-18 01:27:14
推送於2024-09-03 13:24:59
最后一次提交2024-09-03 09:24:53
發布數193
最新版本名稱14.0.0-beta.41 (發布於 )
第一版名稱v1.0.0-alpha.12 (發布於 )
用户参与
星數5.9k
關注者數184
派生數768
提交數734
已啟用問題?
問題數980
打開的問題數48
拉請求數356
打開的拉請求數2
關閉的拉請求數107
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?