Skip to content

junchaohu/angular2-hot-loader-demo

 
 

Repository files navigation

WIP

Note that the project is in very early stage of development. It is still not ready for usage but you can give it a try and share your feedback.

Angular2 Hot Loader

Hot loader for Angular 2, inspired by react-hot-loader.

How to use?

The hot loader is in early stage of development, the angular2-hot-loader module is still not published on npm but you can try demo based on angular2-seed by:

git clone https://github.com/mgechev/angular2-hot-loader
cd angular2-hot-loader
npm install
node server.js

In another terminal session run:

npm start

Now on each edit the changes should be pushed to the client.

Features

  • Add new methods to existing components
  • Support changes of external and inline templates
  • Allow adding inputs and outputs (events and properties) to the components

Limitations

  • Does not push changes in services & pipes
  • Does not update component's constructor

License

MIT

About

Demo of the Angular 2 hot loader prototype

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 63.6%
  • JavaScript 28.9%
  • HTML 4.5%
  • CSS 3.0%