{"action":"created","issue":{"url":"https://api.github.com/repos/algolia/algoliasearch-client-js/issues/168","labels_url":"https://api.github.com/repos/algolia/algoliasearch-client-js/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-js/issues/168/comments","events_url":"https://api.github.com/repos/algolia/algoliasearch-client-js/issues/168/events","html_url":"https://github.com/algolia/algoliasearch-client-js/issues/168","id":118559916,"number":168,"title":"Using Algoliasearch Client JS Angular Module with RequireJS in a Rails Application","user":{"login":"aslam","id":95872,"avatar_url":"https://avatars.githubusercontent.com/u/95872?v=3","gravatar_id":"","url":"https://api.github.com/users/aslam","html_url":"https://github.com/aslam","followers_url":"https://api.github.com/users/aslam/followers","following_url":"https://api.github.com/users/aslam/following{/other_user}","gists_url":"https://api.github.com/users/aslam/gists{/gist_id}","starred_url":"https://api.github.com/users/aslam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslam/subscriptions","organizations_url":"https://api.github.com/users/aslam/orgs","repos_url":"https://api.github.com/users/aslam/repos","events_url":"https://api.github.com/users/aslam/events{/privacy}","received_events_url":"https://api.github.com/users/aslam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-24T08:50:19Z","updated_at":"2015-11-24T12:31:27Z","closed_at":null,"body":"Hello,\r\n\r\nEven though the [Wiki](https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x#umd-compatibility) says it supports all major module loaders, I am unable to figure this one out. Googling is not yielding any helpful results. \r\nI am trying to use this client (Angular build) in our existing Rails application where in we use RequireJS for AMD support with pre-compilation.  I am using [requirejs-rails gem[(https://github.com/jwhitley/requirejs-rails) and maintaining a requirejs.yml to maintain paths config:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/95872/11361269/6064bb44-92b2-11e5-8681-d3b6fabf623a.png)\r\nand the files under ```/vendor``` directory:\r\n![image](https://cloud.githubusercontent.com/assets/95872/11361223/eaaedf9c-92b1-11e5-97f7-26a54da7033f.png)\r\n\r\nI am adding this to the angular module:\r\n```\r\nvar app = angular.module('events', [\r\n        'app.controllers',\r\n        'app.directives',\r\n        'app.filters',\r\n        'app.factories',\r\n        'app.services',\r\n        'ngCookies',\r\n        'algoliasearch'\r\n    ]);\r\n```\r\nit is unable to find this module and looking at a wrong place:\r\n\r\n![request](https://cloud.githubusercontent.com/assets/95872/11361942/ac7328aa-92b6-11e5-9cb0-19f535561b58.jpg)\r\n\r\n\r\nThis setup works in my local environment, but compiling the assets gives problems. Any pointers to resolve this issue is appreciated."},"comment":{"url":"https://api.github.com/repos/algolia/algoliasearch-client-js/issues/comments/159254379","html_url":"https://github.com/algolia/algoliasearch-client-js/issues/168#issuecomment-159254379","issue_url":"https://api.github.com/repos/algolia/algoliasearch-client-js/issues/168","id":159254379,"user":{"login":"vvo","id":123822,"avatar_url":"https://avatars.githubusercontent.com/u/123822?v=3","gravatar_id":"","url":"https://api.github.com/users/vvo","html_url":"https://github.com/vvo","followers_url":"https://api.github.com/users/vvo/followers","following_url":"https://api.github.com/users/vvo/following{/other_user}","gists_url":"https://api.github.com/users/vvo/gists{/gist_id}","starred_url":"https://api.github.com/users/vvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvo/subscriptions","organizations_url":"https://api.github.com/users/vvo/orgs","repos_url":"https://api.github.com/users/vvo/repos","events_url":"https://api.github.com/users/vvo/events{/privacy}","received_events_url":"https://api.github.com/users/vvo/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T12:31:27Z","updated_at":"2015-11-24T12:31:27Z","body":"Thanks I am going to test this now"}}