{"id":18382506,"url":"https://github.com/dimpu/angularjs-hot-loader","last_synced_at":"2026-04-10T23:32:51.957Z","repository":{"id":57179926,"uuid":"104425448","full_name":"dimpu/angularjs-hot-loader","owner":"dimpu","description":"AngularJS hot replacement for webpack","archived":false,"fork":false,"pushed_at":"2017-09-23T21:38:01.000Z","size":409,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T16:08:11.551Z","etag":null,"topics":["angular","angularjs-hot-replacement","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimpu.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-22T03:08:15.000Z","updated_at":"2020-07-22T12:11:34.000Z","dependencies_parsed_at":"2022-09-14T03:30:59.848Z","dependency_job_id":null,"html_url":"https://github.com/dimpu/angularjs-hot-loader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpu%2Fangularjs-hot-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpu%2Fangularjs-hot-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpu%2Fangularjs-hot-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpu%2Fangularjs-hot-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimpu","download_url":"https://codeload.github.com/dimpu/angularjs-hot-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248481808,"owners_count":21111220,"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":["angular","angularjs-hot-replacement","webpack"],"created_at":"2024-11-06T01:06:17.743Z","updated_at":"2025-10-10T19:08:34.401Z","avatar_url":"https://github.com/dimpu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AngularJS Hot replacement for webpack\n\n[![Join the chat at https://gitter.im/dimpu/angularjs-hot-loader](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dimpu/angularjs-hot-loader?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nA  Webpack loader for Hot Module Replacement in AngularJS applications.\n\nThis will only work in Ui Router at the moment with a specific app structure shown below. Will work on it a bit more over the week.\n\nThrowing up a sample app up at https://github.com/dimpu/angularjs-hot-loader\n\n## How to use\n\nwebpack.config.js\n\n```js\nconst path = require('path');\nconst webpack = require('webpack');\n\nmodule.exports = {\n    entry: [\n        'webpack-dev-server/client?http://localhost:3000',\n        'webpack/hot/only-dev-server',\n\n        './src/index.js'\n    ],\n    output: {\n        path: path.resolve(__dirname, 'dist'),\n        publicPath: '/dist/',\n        filename: 'index.bundle.js'\n    },\n    module: {\n        rules: [{\n                test: /\\.js$/,\n                use: [\n                    // 'angularjs-hot-loader',\n                    '../index',\n                    'babel-loader'\n                ],\n                exclude: /node_modules/\n            }\n\n        ]\n    },\n    plugins: [\n        new webpack.HotModuleReplacementPlugin(),\n        new webpack.NoEmitOnErrorsPlugin()\n    ],\n\n    devServer: {\n        host: 'localhost',\n        port: 3000,\n\n        historyApiFallback: true,\n        // respond to 404s with index.html\n\n        hot: true,\n        // enable HMR on the server\n    },\n}\n```\n\n\n\n```\nangular\n  .module('app.components')\n  .directive('sessionItem',function() {\n    return {\n        restrict : 'E',\n        scope: {\n            session: '='\n        },\n        bindToController: true,\n        controllerAs: 'state',\n        replace: true,\n        controller: 'sessionItemCtrl',\n        template: require('./template.html')\n    };\n  })\n  .factory('TestFactory', function() {\n    console.log('derp');\n  })\n  .controller('sessionItemCtrl', require('./sessionItemCtrl'));\n```\n\nand you save that the browser should refresh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimpu%2Fangularjs-hot-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimpu%2Fangularjs-hot-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimpu%2Fangularjs-hot-loader/lists"}