Telerik blogs
Angular_870x220

So what is Hot Module Replacement? Obviously, from the name, we can deduce that it replaces modules in hot mode. But what is it actually doing for us?

Why HMR?

  • No reloading
  • Retain form data between changes
  • Faster feedback loop
  • Not required (currently an opt-in feature)
  • Provided since the v11 of the CLI

There isn’t much written about HMR right now, as it is a newly resurrected feature. (I say this because Justin Schwartzenberger added it once before to the CLI.) But you can check out Alan Agius’s PR, which is currently the most detailed document on the feature.

If you’d like to get started using HMR, it is as simple as this:

running a project and making a change with angulars hot module replacement
Alyssa is the Angular Developer Advocate for Kendo UI. If you're into Angular, React, Vue or jQuery and also happen to love beautiful and highly detailed components, check out Kendo UI. You can find the Kendo UI for Angular library here or jump into a free 30 day trial today. Happy Coding!

AlyssaNicoll
About the Author

Alyssa Nicoll

Alyssa is an Angular Developer Advocate & GDE. Her two degrees (Web Design & Development and Psychology) feed her speaking career. She has spoken at over 30 conferences internationally, specializing in motivational soft talks, enjoys gaming on Xbox and scuba diving in her spare time. Her DM is always open, come talk sometime.

Related Posts

Comments

Comments are disabled in preview mode.