ngx-moz-layouter
v1.9.2
Published
Angular 4 flexsible layout with amazing animations. Based on CSS grid
Downloads
3
Readme
ngx-moz-layouter - Angular library built with ❤ using ngx-library yeoman generator.
Demo
View all the directives in action at https://digimuza.github.io/ngx-moz-layouter
Dependencies
- Angular (requires Angular 2 or higher, tested with 2.0.0)
Installation
Install above dependencies via npm.
Now install ngx-moz-layouter
via:
npm install --save ngx-moz-layouter
SystemJS
Note:If you are using
SystemJS
, you should adjust your configuration to point to the UMD bundle. In your systemjs config file,map
needs to tell the System loader where to look forngx-moz-layouter
:
map: {
'ngx-moz-layouter': 'node_modules/ngx-moz-layouter/bundles/ngx-moz-layouter.umd.js',
}
Once installed you need to import the main module:
import { LibModule } from 'ngx-moz-layouter';
The only remaining part is to list the imported module in your application module. The exact method will be slightly
different for the root (top-level) module for which you should end up with the code similar to (notice MozLayoutModule.forRoot()
):
import { LibModule } from 'ngx-moz-layouter';
@NgModule({
declarations: [AppComponent, ...],
imports: [MozLayoutModule.forRoot(), ...],
bootstrap: [AppComponent]
})
export class AppModule {
}
Other modules in your application can simply import MozLayoutModule
:
import { LibModule } from 'ngx-moz-layouter';
@NgModule({
declarations: [OtherComponent, ...],
imports: [MozLayoutModule, ...],
})
export class OtherModule {
}
Usage
License
Copyright (c) 2017 Andrius Mozūraitis (digimuza.com). Licensed under the MIT License (MIT)