{"action":"created","issue":{"url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/59","labels_url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/59/comments","events_url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/59/events","html_url":"https://github.com/wbuchwalter/ng-redux/issues/59","id":128213740,"number":59,"title":"Using ng-redux without ES6 modules","user":{"login":"nmehta6","id":1521532,"avatar_url":"https://avatars.githubusercontent.com/u/1521532?v=3","gravatar_id":"","url":"https://api.github.com/users/nmehta6","html_url":"https://github.com/nmehta6","followers_url":"https://api.github.com/users/nmehta6/followers","following_url":"https://api.github.com/users/nmehta6/following{/other_user}","gists_url":"https://api.github.com/users/nmehta6/gists{/gist_id}","starred_url":"https://api.github.com/users/nmehta6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmehta6/subscriptions","organizations_url":"https://api.github.com/users/nmehta6/orgs","repos_url":"https://api.github.com/users/nmehta6/repos","events_url":"https://api.github.com/users/nmehta6/events{/privacy}","received_events_url":"https://api.github.com/users/nmehta6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-22T18:23:59Z","updated_at":"2016-01-22T21:13:02Z","closed_at":null,"body":"I am consuming ng-redux in a project that does not use any modules. The challenge that I ran into with this approach is with the `config` block. If you have any suggestions for this, I would greatly appreciate it!\r\n\r\n```\r\nangular.module('counter', [ngRedux])\r\n  .config(($ngReduxProvider) => {\r\n    $ngReduxProvider.createStoreWith(rootReducer, [thunk], [DevTools.instrument()]);\r\n  });\r\n```\r\n\r\nWhat would be the best way to create reducers here? Should they be $providers so they can be injected in the config block?\r\n\r\nIf ngRedux provided a factory instead of a provider it could be setup in a `run` block and everything (reducers, actionCreators, etc.) can be defined as `factory`.\r\n\r\nI understand that using ES6 modules is great and brings lots of benefits. I don't have that setup for my angular project though."},"comment":{"url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/comments/174050658","html_url":"https://github.com/wbuchwalter/ng-redux/issues/59#issuecomment-174050658","issue_url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/59","id":174050658,"user":{"login":"nmehta6","id":1521532,"avatar_url":"https://avatars.githubusercontent.com/u/1521532?v=3","gravatar_id":"","url":"https://api.github.com/users/nmehta6","html_url":"https://github.com/nmehta6","followers_url":"https://api.github.com/users/nmehta6/followers","following_url":"https://api.github.com/users/nmehta6/following{/other_user}","gists_url":"https://api.github.com/users/nmehta6/gists{/gist_id}","starred_url":"https://api.github.com/users/nmehta6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmehta6/subscriptions","organizations_url":"https://api.github.com/users/nmehta6/orgs","repos_url":"https://api.github.com/users/nmehta6/repos","events_url":"https://api.github.com/users/nmehta6/events{/privacy}","received_events_url":"https://api.github.com/users/nmehta6/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T21:13:02Z","updated_at":"2016-01-22T21:13:02Z","body":"No, I don't have any bundlers at the moment. I am relying solely on the minimal load order that angular provides (with config blocks and providers, runs and factories). I haven't had any need for a bundler since I am completely inside the angular world."}}