Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

angular-webpack-hmr

1337programming211MIT1.0.1

Angular 1 Hot Module Replacement for Webpack

angular 1, angularjs, hmr, webpack

readme

angular-webpack-hmr

Hot Module Replacement Angular Modifications for Angular 1

Usage

This project contains two separate functions:

  • modifyAngular: This modifies the global angular object to allow for renewal of angular components for hot module replacement.
  • acceptTemplateChange: This should be used when a template changes while listening for template changes. It will renew the cache.

To use these, make sure that you are requiring the contexts of all the various components. In your code, place:

if (module.hot) {
    require('angular-webpack-hmr').modifyAngular();
}