angular-webpack-hmr

1.0.1 • Public • Published

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();
}

/angular-webpack-hmr/

    Package Sidebar

    Install

    npm i angular-webpack-hmr

    Weekly Downloads

    20

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • thomaswmanion