{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/framework/issues/43","labels_url":"https://api.github.com/repos/aurelia/framework/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/framework/issues/43/comments","events_url":"https://api.github.com/repos/aurelia/framework/issues/43/events","html_url":"https://github.com/aurelia/framework/issues/43","id":57531653,"number":43,"title":"aurelia-http-client example","user":{"login":"carlskii","id":555399,"avatar_url":"https://avatars.githubusercontent.com/u/555399?v=3","gravatar_id":"","url":"https://api.github.com/users/carlskii","html_url":"https://github.com/carlskii","followers_url":"https://api.github.com/users/carlskii/followers","following_url":"https://api.github.com/users/carlskii/following{/other_user}","gists_url":"https://api.github.com/users/carlskii/gists{/gist_id}","starred_url":"https://api.github.com/users/carlskii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlskii/subscriptions","organizations_url":"https://api.github.com/users/carlskii/orgs","repos_url":"https://api.github.com/users/carlskii/repos","events_url":"https://api.github.com/users/carlskii/events{/privacy}","received_events_url":"https://api.github.com/users/carlskii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-12T22:44:15Z","updated_at":"2015-02-12T22:48:50Z","closed_at":null,"body":"Hi,\r\n\r\nI'm looking for a decent SPA framework for small internal project. I've wasted hours trying to get my head around Ember.js, Angular.js. Being new to SPA's both of these frameworks seem like a massive overkill for me, not to mention the complexity especially with Ember. They both seem like their trying to be all things to all men. \r\n\r\nSo Aurelia looks very interesting, except for the dependancy injection bit, which I'm struggling to get my head around. \r\n\r\n```javascript\r\nimport {HttpClient} from 'aurelia-http-client';\r\n\r\nexport class WebAPI {\r\n    static inject() { return [HttpClient]; }\r\n    constructor(http){\r\n        this.http = http;\r\n    }\r\n\r\n    return getAllContacts(){\r\n        return this.http.get('uri goes here');\r\n    }\r\n}\r\n```\r\n\r\nWould you mind providing a simple working example of this (just a simple HTTP GET) in the \"getting started\" navigation-app to help me understand how to splice things together? \r\n\r\nUltimately my app will need to make multiple HTTP requests and then correlate the returned data in order so I'll need to include the ability to deal with promises too.\r\n\r\nThanks for what could be a productivity game changer."},"comment":{"url":"https://api.github.com/repos/aurelia/framework/issues/comments/74170539","html_url":"https://github.com/aurelia/framework/issues/43#issuecomment-74170539","issue_url":"https://api.github.com/repos/aurelia/framework/issues/43","id":74170539,"user":{"login":"EisenbergEffect","id":131485,"avatar_url":"https://avatars.githubusercontent.com/u/131485?v=3","gravatar_id":"","url":"https://api.github.com/users/EisenbergEffect","html_url":"https://github.com/EisenbergEffect","followers_url":"https://api.github.com/users/EisenbergEffect/followers","following_url":"https://api.github.com/users/EisenbergEffect/following{/other_user}","gists_url":"https://api.github.com/users/EisenbergEffect/gists{/gist_id}","starred_url":"https://api.github.com/users/EisenbergEffect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EisenbergEffect/subscriptions","organizations_url":"https://api.github.com/users/EisenbergEffect/orgs","repos_url":"https://api.github.com/users/EisenbergEffect/repos","events_url":"https://api.github.com/users/EisenbergEffect/events{/privacy}","received_events_url":"https://api.github.com/users/EisenbergEffect/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T22:48:50Z","updated_at":"2015-02-12T22:48:50Z","body":"Did you have a look at the flickr view model on the skeleton-navigation?"}}