{"id":15020114,"url":"https://github.com/vitaliy-bobrov/angular-hot-loader","last_synced_at":"2025-09-30T17:30:27.933Z","repository":{"id":57178509,"uuid":"71437855","full_name":"vitaliy-bobrov/angular-hot-loader","owner":"vitaliy-bobrov","description":"🔥 Webpack Hot Module Replacement for Angular 1.x applications.","archived":false,"fork":true,"pushed_at":"2019-04-27T06:12:33.000Z","size":119,"stargazers_count":32,"open_issues_count":7,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T01:39:16.521Z","etag":null,"topics":["angularjs","hmr","hot-reload","webpack","webpack2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"yargalot/Angular-HMR","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vitaliy-bobrov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-20T07:46:44.000Z","updated_at":"2023-08-22T19:29:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vitaliy-bobrov/angular-hot-loader","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitaliy-bobrov%2Fangular-hot-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitaliy-bobrov%2Fangular-hot-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitaliy-bobrov%2Fangular-hot-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitaliy-bobrov%2Fangular-hot-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitaliy-bobrov","download_url":"https://codeload.github.com/vitaliy-bobrov/angular-hot-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234753666,"owners_count":18881436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angularjs","hmr","hot-reload","webpack","webpack2"],"created_at":"2024-09-24T19:54:36.540Z","updated_at":"2025-09-30T17:30:27.637Z","avatar_url":"https://github.com/vitaliy-bobrov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Hot Loader\n\n[![Build Status](https://travis-ci.org/vitaliy-bobrov/angular-hot-loader.svg?branch=master)](https://travis-ci.org/vitaliy-bobrov/angular-hot-loader)\n[![npm version](https://badge.fury.io/js/angular-hot-loader.svg)](https://badge.fury.io/js/angular-hot-loader)\n[![npm](https://img.shields.io/npm/dt/angular-hot-loader.svg)](https://github.com/vitaliy-bobrov/angular-hot-loader)\n\n🔥 Webpack Hot Module Replacement for Angular 1.x applications.\n\n**Now works only with UI Router**\n\nForked from [Angular-HMR](https://github.com/yargalot/Angular-HMR)\n\n## Installation\n  - npm\n  ```bash\n  npm install --save-dev angular-hot-loader\n  ```\n\n  - yarn\n  ```bash\n  yarn add --dev angular-hot-loader\n  ```\n\n## Webpack setup\n\n* Webpack 2.x:\n```js\nrules: [\n  {\n    test: /\\.js$/,\n    use: [\n      'angular-hot-loader',\n      // Any other loaders.\n    ]\n  }\n]\n```\n\nWith options:\n\n```js\nrules: [\n  {\n    test: /\\.js$/,\n    use: [\n      {\n        loader: 'angular-hot-loader',\n        options: {\n          log: true,\n          rootElement: 'html'\n        }\n      },\n      // Any other loaders.\n    ]\n  }\n]\n```\n\n* Webpack 1.x:\n```js\nloaders: [\n  {\n    test: /\\.js$/,\n    loader: 'angular-hot!...other loaders'\n  }\n]\n```\n\n### Webpack Hot Module Replacement setup:\nSee Webpack documentation:\n- [Webpack 2.x](https://webpack.js.org/configuration/dev-server/#devserver-hot)\n- [Webpack 1.x](http://webpack.github.io/docs/hot-module-replacement-with-webpack.html)\n\n## Options\n\n### rootElement {String}\nDefault: `[ng-app]`\n\nSpecifies application DOM root element selector. Use 'html' when boostraping your Angular app on document.\n\n### log {Boolean}\nDefault: `false`\n\nEnables module output to console.\n\n## How it works\nThis will inject the new controller / template / service / whatever and then reload the state in UI Router.\n\n### Example app structure:\n\n```js\nimport MyFactory from './your-factory';\nimport MyCtrl from './your-controller';\nimport MyComponent from './your-component';\n\nangular\n  .module('my-app', [ui.router])\n  .directive('MyDirective', require('MyDirective'))\n  .factory('MyFactory', MyFactory)\n  .controller('MyCtrl', MyCtrl)\n  .component('myComponent', MyComponent);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitaliy-bobrov%2Fangular-hot-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitaliy-bobrov%2Fangular-hot-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitaliy-bobrov%2Fangular-hot-loader/lists"}