{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular/issues/917","labels_url":"https://api.github.com/repos/angular/angular/issues/917/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/917/comments","events_url":"https://api.github.com/repos/angular/angular/issues/917/events","html_url":"https://github.com/angular/angular/issues/917","id":60608401,"number":917,"title":"proposal: promises in templates.","user":{"login":"SanderElias","id":1249083,"avatar_url":"https://avatars.githubusercontent.com/u/1249083?v=3","gravatar_id":"","url":"https://api.github.com/users/SanderElias","html_url":"https://github.com/SanderElias","followers_url":"https://api.github.com/users/SanderElias/followers","following_url":"https://api.github.com/users/SanderElias/following{/other_user}","gists_url":"https://api.github.com/users/SanderElias/gists{/gist_id}","starred_url":"https://api.github.com/users/SanderElias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SanderElias/subscriptions","organizations_url":"https://api.github.com/users/SanderElias/orgs","repos_url":"https://api.github.com/users/SanderElias/repos","events_url":"https://api.github.com/users/SanderElias/events{/privacy}","received_events_url":"https://api.github.com/users/SanderElias/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-11T04:17:31Z","updated_at":"2015-04-28T20:07:26Z","closed_at":"2015-04-28T20:07:26Z","body":"In line with how ES7 is going to support some more async operators and stuff I was wondering on how to support async in templates now. Do we have a way to resolve a promise in the template?\r\nhere is an example of what I would like to propose:\r\n\r\n```\r\n   <template promise=\"goLoadUser(id) then #user\">\r\n           <li>{{user.name}}</li>\r\n   </template>\r\n```\r\n\r\nthis makes it possible to handle a array of promises right in the template like this:\r\n```\r\n   <template *for=\"#prom of arrayOfAsyncLoadingUsers\">\r\n      <template promise=\"prom then #user\">\r\n             <li>{{user.name}}</li>\r\n      </template>\r\n  </template>\r\n```\r\n\r\nOr is this just stretching it too far?\r\n"}}