Flex-layout: npm support

Created on 13 Dec 2016  路  2Comments  路  Source: angular/flex-layout

This is just a preliminary documentation on how to use flex-layout with npm even though it's not yet supported. It's not recommended to use this in production!

Install flex-layout using npm via GitHub
npm install --save https://github.com/angular/flex-layout.git
This will save the current commit as installation candidate. Change this as flex-layout is published officially to npm!

If you use the import as stated in the documentation you will receive an error that it can't find the module.
import { FlexLayoutModule } from '@angular/flex-layout'; // Cannot find module '@angular/flex-layout'.

therefore change the import to

import { FlexLayoutModule } from '@angular/flex-layout/src/lib';

This is for development purposes only! Do not use this in production!

Most helpful comment

Do not do this! We are working to fix the build tools

All 2 comments

Do not do this! We are working to fix the build tools

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings