Code Splitting with Angular 2 and Webpack 2
Installation
npm i
npm run build
Running Example
npm start
Navigate to http://localhost:3011.
Click "Load a dynamic component"
View the network tab in the dev tools to see that the component has been downloaded.