Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
/flex-layoutPublic archive

Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API

License

NotificationsYou must be signed in to change notification settings

angular/flex-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm versionBuild statusGitter

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.


Getting Started

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.


Quick Links

Demos

StackBlitz Templates

Developers


Browser Support

 caniuseflexbox



License

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

License: MIT


[8]ページ先頭

©2009-2025 Movatter.jp