I'm working my way through Angular 2 and have run into a few issues with 3rd party libraries
How do I best go about including both libraries in my project? Should I simply stick with the Broccoli installer or are there any work arounds?
FYI the angular-cli build tool is moving away from broccoli and has a test branch for webpack.
You can install it using npm install angular-cli@1.0.0-beta.11-webpack.2
From there, you just need to install the material packages and typings. I believe that webpack is smart enough to know it needs to include files from the import
statements. I've got moment.js and lodash added into my webpack project and it was a simple as installing them and their typings.
That being said, last I checked material was NOT working with RC6 as a result of the recent changes to how modules are imported into your application.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.