Skip to content

Fast Starts

Alessio Bianchini edited this page Dec 17, 2025 · 3 revisions

Install from npm

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 {}

1) Angular CLI + npm + ng-flex-layout

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 {}

Local Builds

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

Clone this wiki locally