Angular 2 Lazy Loading with Webpack 2

added by DotNetKicks
1/14/2017 5:59:16 PM

2 Kicks, 330 Views

This article shows how Angular 2 lazy loading can be supported using Webpack 2 for both JIT and AoT builds. The Webpack loader angular-router-loader from Brandon Roberts is used to implement this. A big thanks to Roberto Simonetti for his help in this. Code: Visual Studio 2015 version: https://github.com/damienbod/Angular2WebpackVisualStudio Visual Studio 2017 version: https://github.com/damienbod/Angular2WebpackVisualStudio/tree/VisualStudio2017 Create...


0 comments