forked from angular/flex-layout
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Fast Starts
Alessio Bianchini edited this page Dec 17, 2025
·
3 revisions
npm install --save ng-flex-layout
or with pnpm:
pnpm add ng-flex-layout
Next, modify your app.module.ts to use the FlexLayoutModule:
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {FlexLayoutModule} from "ng-flex-layout";
import {DemoAppComponent} from './demo-app/demo-app';
@NgModule({
declarations: [DemoAppComponent],
bootstrap: [DemoAppComponent],
imports: [
BrowserModule,
FlexLayoutModule,
]
})
export class DemoAppModule {}If you are using the Angular CLI to bundle and serve your application (using ng serve), run the following command:
npm install --save ng-flex-layout
Next, modify your app.module.ts to use the FlexLayoutModule:
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {FlexLayoutModule} from "ng-flex-layout";
import {DemoAppComponent} from './demo-app/demo-app';
@NgModule({
declarations: [DemoAppComponent],
bootstrap: [DemoAppComponent],
imports: [
BrowserModule,
FlexLayoutModule
]
})
export class DemoAppModule {}Developers can, however, easily install this ng-flex-layout library using a local repository build
and a directory copy:
pnpm run build
cd dist/releases/flex-layout
npm pack-
Quick Links
-
Documentation
-
Demos
-
StackBlitz Templates
-
Learning FlexBox
-
History
-
Developer Guides
-
Contributing