This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 772
Webpack Configuration
Thomas Burleson edited this page Apr 22, 2017
·
5 revisions
[WIP] - Below are instructions for integrating Flex-Layout into new or existing WebPack driven projects.
Implementation in a 2.x project should be extremely straight forward and won't require any changes to your webpack.config.js
Code examples are from Angular/Angular2-seed.
npm install --save @angular/flex-layout
or...
yarn add @angular/flex-layout
app.module.ts
...
import { FlexLayoutModule } from '@angular/flex-layout';
...
@NgModule({
imports: [
...
FlexLayoutModule
],
...
})
export class AppModule { }
Add the code below into an existing component ( or add something similar ) to verify Angular Flex-Layout
has bee properly imported into your application.
home.component.html
<div class="flexDemoContainer">
<div fxLayout="row" fxLayout.xs="column" fxLayout.sm="column" fxFlex>
<div fxFlex> I'm above on mobile, and left on larger devices. </div>
<div fxFlex> I'm below on mobile, and right on larger devices. </div>
</div>
</div>
home.component.css
.flexDemoContainer {
border: solid 1px #red;
box-sizing: content-box !important;
}
-
Quick Links
-
Documentation
-
Demos
-
StackBlitz Templates
-
Learning FlexBox
-
History
-
Developer Guides
-
Contributing