/angular2_code_splitting

Code splitting in Angular 2 with Webpack 2. (repo from blog post)

Primary LanguageTypeScript

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.