{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/11904","labels_url":"https://api.github.com/repos/angular/angular.js/issues/11904/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/11904/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/11904/events","html_url":"https://github.com/angular/angular.js/issues/11904","id":77983719,"number":11904,"title":"Get directive instance (for Webpack hot module replacement)","user":{"login":"jgoux","id":1443499,"avatar_url":"https://avatars.githubusercontent.com/u/1443499?v=3","gravatar_id":"","url":"https://api.github.com/users/jgoux","html_url":"https://github.com/jgoux","followers_url":"https://api.github.com/users/jgoux/followers","following_url":"https://api.github.com/users/jgoux/following{/other_user}","gists_url":"https://api.github.com/users/jgoux/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoux/subscriptions","organizations_url":"https://api.github.com/users/jgoux/orgs","repos_url":"https://api.github.com/users/jgoux/repos","events_url":"https://api.github.com/users/jgoux/events{/privacy}","received_events_url":"https://api.github.com/users/jgoux/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-19T07:59:44Z","updated_at":"2016-01-20T13:18:01Z","closed_at":"2016-01-20T13:18:01Z","body":"Hello,\r\nI'm experimenting with Webpack hot module replacement (http://webpack.github.io/docs/hot-module-replacement.html) and Angular.\r\nI want to be able to modify a directive's template or controller without reloading the browser.\r\nFor this purpose, I think I need to find a way to get the directive instance from the module where it's registered, then I could apply patches to the instance and maybe rerender the directive.\r\nSo, is it possible to get a directive instance ? :)\r\nI think this could be a really interesting project but I need some help.\r\n\r\nEDIT : Here are two projects using hot module replacement : \r\n- https://github.com/jlongster/monkey-hot-loader\r\n- https://github.com/gaearon/react-hot-loader"}}