-
Notifications
You must be signed in to change notification settings - Fork 771
Using Angular CLI
Thomas Burleson edited this page Aug 6, 2017
·
10 revisions
Using Flex-Layout with the the Angular CLI is easy.
# Global
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli
ng new my-project
rm -rf node_modules/
npm install
The new command creates a project with a build system for your Angular app.
src/app/app.module.ts
import { FlexLayoutModule } from '@angular/flex-layout';
// other imports
@NgModule({
imports: [FlexLayoutModule],
...
})
export class PizzaPartyAppModule { }
If your project is using SystemJS for module loading, you will need to add @angular/flex-layout
to the SystemJS configuration:
System.config({
// existing configuration options
map: {
...,
'@angular/flex-layout': 'npm:@angular/flex-layout/bundles/flex-layout.umd.js'
}
});
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