{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/http-client/issues/72","labels_url":"https://api.github.com/repos/aurelia/http-client/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/http-client/issues/72/comments","events_url":"https://api.github.com/repos/aurelia/http-client/issues/72/events","html_url":"https://github.com/aurelia/http-client/issues/72","id":95956671,"number":72,"title":"\"repeat.for\" construct fails as a function of http-client data source","user":{"login":"adriatic","id":2712405,"avatar_url":"https://avatars.githubusercontent.com/u/2712405?v=3","gravatar_id":"","url":"https://api.github.com/users/adriatic","html_url":"https://github.com/adriatic","followers_url":"https://api.github.com/users/adriatic/followers","following_url":"https://api.github.com/users/adriatic/following{/other_user}","gists_url":"https://api.github.com/users/adriatic/gists{/gist_id}","starred_url":"https://api.github.com/users/adriatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriatic/subscriptions","organizations_url":"https://api.github.com/users/adriatic/orgs","repos_url":"https://api.github.com/users/adriatic/repos","events_url":"https://api.github.com/users/adriatic/events{/privacy}","received_events_url":"https://api.github.com/users/adriatic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-19T23:03:12Z","updated_at":"2015-07-20T01:17:54Z","closed_at":null,"body":"This is weird and I hope is not a silly pilot error. I have a simple pair {app.js, app.html} defined as\r\n```\r\nimport {HttpClient} from \"aurelia-http-client\";\r\n\r\nexport class App {\r\n\r\n    constructor () {\r\n        this.http = new HttpClient();\r\n    }\r\n\r\n    activate() {\r\n        return this.http.get(\"/api/movies\")\r\n                        .then (response => {\r\n                            this.movies = response.content;\r\n                        });\r\n    }\r\n\r\n}\r\n```\r\nand\r\n```\r\n<template>\r\n    \r\n    <div class=\"container\">\r\n    \r\n        <div> You have ${movies.length} movies.</div>\r\n\r\n        <table class=\"table\">\r\n            <tr>\r\n                <th>Title</th>\r\n                <th>Year</th>\r\n            </tr>\r\n            <tr repeat.for=\"movie of movies\">\r\n                <td>${movie.title}</td>\r\n                <td>${movie.releaseYear}</td>\r\n            </tr>\r\n        </table>\r\n    </div>\r\n\r\n</template>\r\n```\r\nhere is the screenshot of the Chrome debugger in action\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2712405/8768259/5cfe445e-2e47-11e5-8ff6-3c9364a03c3b.png)\r\n\r\nwhich indicates that the http.get() method fetched the correct content. The app.html renders the view shown below:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2712405/8768277/c81fc230-2e47-11e5-9c10-dbe7ca5794fa.png)\r\n\r\nNote that ${movies.length} correctly evaluates to 3 - while the loop repeat.for=\"movie of movies\" gets executed 0 times.\r\n\r\nWhat is really weird is that replacing the ```http.get(\"/api/movies\")``` with ```http.get(\"/movies.json\")```  which is the reference to the file in the client's root folder as shown below\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2712405/8768289/7f08a336-2e48-11e5-9cc1-84666c496cfb.png)\r\n\r\nwithout any other changes in this project results with what one would expect:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2712405/8768296/bea412a0-2e48-11e5-8c78-d13785c8f2bd.png)\r\n"},"comment":{"url":"https://api.github.com/repos/aurelia/http-client/issues/comments/122724322","html_url":"https://github.com/aurelia/http-client/issues/72#issuecomment-122724322","issue_url":"https://api.github.com/repos/aurelia/http-client/issues/72","id":122724322,"user":{"login":"adriatic","id":2712405,"avatar_url":"https://avatars.githubusercontent.com/u/2712405?v=3","gravatar_id":"","url":"https://api.github.com/users/adriatic","html_url":"https://github.com/adriatic","followers_url":"https://api.github.com/users/adriatic/followers","following_url":"https://api.github.com/users/adriatic/following{/other_user}","gists_url":"https://api.github.com/users/adriatic/gists{/gist_id}","starred_url":"https://api.github.com/users/adriatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriatic/subscriptions","organizations_url":"https://api.github.com/users/adriatic/orgs","repos_url":"https://api.github.com/users/adriatic/repos","events_url":"https://api.github.com/users/adriatic/events{/privacy}","received_events_url":"https://api.github.com/users/adriatic/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T01:17:54Z","updated_at":"2015-07-20T01:17:54Z","body":"**Thanks Bryan** for showing me that I am blind with healthy eyes (this is probably the case number 1321 in the long series of such proofs). My excuse is always the same: interacting with some new product I would always suspect to see a lot of bugs - and never in my own code / data. So, my assumption that the ```repeat.for``` did not execute, was false - there was nothing to show in each pass of the loop :-(\r\n\r\nI also find interesting that you live in Bellingham, my favorite place on the whole world. I used to live in Fairhaven from 2005 until 2013 when I moved to Ann Arbor, MI to be close to my daughter, who works here."}}