forked from angular/flex-layout
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Using Angular CLI
Alessio Bianchini edited this page Dec 17, 2025
·
5 revisions
Using Flex-Layout with the the Angular CLI is easy.
# Global
npm uninstall -g @angular/cli
npm install -g @angular/cli ng new my-projectrm -rf node_modules/
npm installThe new command creates a project with a build system for your Angular app.
npm install ng-flex-layout @angular/cdk --saveThis installs the most recent npm release of Flex-Layout.
src/app/app.module.ts
import {NgModule} from '@angular/core';
import {FlexLayoutModule} from 'ng-flex-layout';
// other imports
@NgModule({
imports: [FlexLayoutModule],
...
})
export class PizzaPartyAppModule {}Developers are encouraged to review the live demos and source for the Flex-Layout Demos:
-
Quick Links
-
Documentation
-
Demos
-
StackBlitz Templates
-
Learning FlexBox
-
History
-
Developer Guides
-
Contributing