{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular.io/pulls/comments/69712039","id":69712039,"diff_hunk":"@@ -179,65 +187,70 @@ figure.image-display\n   That's fine for a demo but certainly isn't a best practice. It's not even a good practice.\n   Although we won't do anything about that in this chapter, we'll make a mental note to fix this down the road.\n \n-  At the moment, we're binding to an array of strings. We do that occasionally in real applications, but\n-  most of the time we're displaying objects &mdash; potentially instances of classes.\n+  At the moment, we're binding to !{_an} !{_array} of strings. We do that occasionally in real applications, but\n+  most of the time we're binding to more specialized objects.\n \n-  Let's turn our array of hero names into an array of `Hero` objects. For that we'll need a `Hero` class.\n+  Let's turn our !{_array} of hero names into !{_an} !{_array} of `Hero` objects. For that we'll need a `Hero` class.\n \n-  Create a new file in the `app/` folder called `hero.ts` with the following short bit of code.\n-+makeExample('displaying-data/ts/app/hero.ts', null, 'app/hero.ts')(format = \".\")\n+  Create a new file in the `!{_appDir}` folder called  <ngio-ex path=\"hero.ts\"></ngio-ex> with the following code:\n+  \n++makeExcerpt('app/hero.ts')\n \n-:marked\n-  We've defined a class with a constructor and two properties: `id` and `name`.\n+block hero-class\n+  :marked\n+    We've defined a class with a constructor and two properties: `id` and `name`.\n \n-  It might not look like we have properties, but we do. We're taking\n-  advantage of a TypeScript shortcut in our declaration of the constructor parameters.\n+    It might not look like we have properties, but we do. We're taking\n+    advantage of a TypeScript shortcut in our declaration of the constructor parameters.\n \n-  Consider the first parameter:\n-+makeExample('displaying-data/ts/app/hero.ts', 'id-parameter')\n+    Consider the first parameter:\n \n-:marked\n-  That brief syntax does a lot:\n-  * declares a constructor parameter and its type\n-  * declares a public property of the same name\n-  * initializes that property with the corresponding argument when we \"new\" an instance of the class\n+  +makeExcerpt('app/hero.ts ()', 'id')","path":"public/docs/ts/latest/guide/displaying-data.jade","position":274,"original_position":274,"commit_id":"13e7e070d1ca8a7e95f7d11ad98f10a202899038","original_commit_id":"13e7e070d1ca8a7e95f7d11ad98f10a202899038","user":{"login":"chalin","id":4140793,"avatar_url":"https://avatars.githubusercontent.com/u/4140793?v=3","gravatar_id":"","url":"https://api.github.com/users/chalin","html_url":"https://github.com/chalin","followers_url":"https://api.github.com/users/chalin/followers","following_url":"https://api.github.com/users/chalin/following{/other_user}","gists_url":"https://api.github.com/users/chalin/gists{/gist_id}","starred_url":"https://api.github.com/users/chalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalin/subscriptions","organizations_url":"https://api.github.com/users/chalin/orgs","repos_url":"https://api.github.com/users/chalin/repos","events_url":"https://api.github.com/users/chalin/events{/privacy}","received_events_url":"https://api.github.com/users/chalin/received_events","type":"User","site_admin":false},"body":"Because of the `()` the mixin will render the title as `app/hero.ts (excerpt)`.","created_at":"2016-07-06T11:09:57Z","updated_at":"2016-07-06T11:09:57Z","html_url":"https://github.com/angular/angular.io/pull/1819#discussion_r69712039","pull_request_url":"https://api.github.com/repos/angular/angular.io/pulls/1819","_links":{"self":{"href":"https://api.github.com/repos/angular/angular.io/pulls/comments/69712039"},"html":{"href":"https://github.com/angular/angular.io/pull/1819#discussion_r69712039"},"pull_request":{"href":"https://api.github.com/repos/angular/angular.io/pulls/1819"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular.io/pulls/1819","id":76102381,"html_url":"https://github.com/angular/angular.io/pull/1819","diff_url":"https://github.com/angular/angular.io/pull/1819.diff","patch_url":"https://github.com/angular/angular.io/pull/1819.patch","issue_url":"https://api.github.com/repos/angular/angular.io/issues/1819","number":1819,"state":"open","locked":false,"title":"docs(guide/displaying-data): proofread","user":{"login":"chalin","id":4140793,"avatar_url":"https://avatars.githubusercontent.com/u/4140793?v=3","gravatar_id":"","url":"https://api.github.com/users/chalin","html_url":"https://github.com/chalin","followers_url":"https://api.github.com/users/chalin/followers","following_url":"https://api.github.com/users/chalin/following{/other_user}","gists_url":"https://api.github.com/users/chalin/gists{/gist_id}","starred_url":"https://api.github.com/users/chalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalin/subscriptions","organizations_url":"https://api.github.com/users/chalin/orgs","repos_url":"https://api.github.com/users/chalin/repos","events_url":"https://api.github.com/users/chalin/events{/privacy}","received_events_url":"https://api.github.com/users/chalin/received_events","type":"User","site_admin":false},"body":"- TS prose updated to include @kwalrath's revisions from a while ago, with some of my edits as well.\r\n- Dart prose simplified by removing discussion of \"additions to `pubspec.yaml`\" which are no longer necessary given the current state of QuickStart.\r\n- E2e suites passed:\r\n  - public/docs/_examples/displaying-data/dart\r\n  - public/docs/_examples/displaying-data/ts\r\n\r\nContributes to #1598 and #1508.\r\nDepends on #1818.\r\n","created_at":"2016-07-04T00:21:20Z","updated_at":"2016-07-06T11:09:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d844db59315b315c4b1964f8b9bd0f3a44a6f4e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/angular/angular.io/pulls/1819/commits","review_comments_url":"https://api.github.com/repos/angular/angular.io/pulls/1819/comments","review_comment_url":"https://api.github.com/repos/angular/angular.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular.io/issues/1819/comments","statuses_url":"https://api.github.com/repos/angular/angular.io/statuses/13e7e070d1ca8a7e95f7d11ad98f10a202899038","head":{"label":"chalin:chalin-guide-disp-data-0702","ref":"chalin-guide-disp-data-0702","sha":"13e7e070d1ca8a7e95f7d11ad98f10a202899038","user":{"login":"chalin","id":4140793,"avatar_url":"https://avatars.githubusercontent.com/u/4140793?v=3","gravatar_id":"","url":"https://api.github.com/users/chalin","html_url":"https://github.com/chalin","followers_url":"https://api.github.com/users/chalin/followers","following_url":"https://api.github.com/users/chalin/following{/other_user}","gists_url":"https://api.github.com/users/chalin/gists{/gist_id}","starred_url":"https://api.github.com/users/chalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalin/subscriptions","organizations_url":"https://api.github.com/users/chalin/orgs","repos_url":"https://api.github.com/users/chalin/repos","events_url":"https://api.github.com/users/chalin/events{/privacy}","received_events_url":"https://api.github.com/users/chalin/received_events","type":"User","site_admin":false},"repo":{"id":56787952,"name":"angular.io","full_name":"chalin/angular.io","owner":{"login":"chalin","id":4140793,"avatar_url":"https://avatars.githubusercontent.com/u/4140793?v=3","gravatar_id":"","url":"https://api.github.com/users/chalin","html_url":"https://github.com/chalin","followers_url":"https://api.github.com/users/chalin/followers","following_url":"https://api.github.com/users/chalin/following{/other_user}","gists_url":"https://api.github.com/users/chalin/gists{/gist_id}","starred_url":"https://api.github.com/users/chalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalin/subscriptions","organizations_url":"https://api.github.com/users/chalin/orgs","repos_url":"https://api.github.com/users/chalin/repos","events_url":"https://api.github.com/users/chalin/events{/privacy}","received_events_url":"https://api.github.com/users/chalin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chalin/angular.io","description":"Website for Angular 2","fork":true,"url":"https://api.github.com/repos/chalin/angular.io","forks_url":"https://api.github.com/repos/chalin/angular.io/forks","keys_url":"https://api.github.com/repos/chalin/angular.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chalin/angular.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chalin/angular.io/teams","hooks_url":"https://api.github.com/repos/chalin/angular.io/hooks","issue_events_url":"https://api.github.com/repos/chalin/angular.io/issues/events{/number}","events_url":"https://api.github.com/repos/chalin/angular.io/events","assignees_url":"https://api.github.com/repos/chalin/angular.io/assignees{/user}","branches_url":"https://api.github.com/repos/chalin/angular.io/branches{/branch}","tags_url":"https://api.github.com/repos/chalin/angular.io/tags","blobs_url":"https://api.github.com/repos/chalin/angular.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chalin/angular.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chalin/angular.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/chalin/angular.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chalin/angular.io/statuses/{sha}","languages_url":"https://api.github.com/repos/chalin/angular.io/languages","stargazers_url":"https://api.github.com/repos/chalin/angular.io/stargazers","contributors_url":"https://api.github.com/repos/chalin/angular.io/contributors","subscribers_url":"https://api.github.com/repos/chalin/angular.io/subscribers","subscription_url":"https://api.github.com/repos/chalin/angular.io/subscription","commits_url":"https://api.github.com/repos/chalin/angular.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/chalin/angular.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/chalin/angular.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/chalin/angular.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/chalin/angular.io/contents/{+path}","compare_url":"https://api.github.com/repos/chalin/angular.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chalin/angular.io/merges","archive_url":"https://api.github.com/repos/chalin/angular.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chalin/angular.io/downloads","issues_url":"https://api.github.com/repos/chalin/angular.io/issues{/number}","pulls_url":"https://api.github.com/repos/chalin/angular.io/pulls{/number}","milestones_url":"https://api.github.com/repos/chalin/angular.io/milestones{/number}","notifications_url":"https://api.github.com/repos/chalin/angular.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chalin/angular.io/labels{/name}","releases_url":"https://api.github.com/repos/chalin/angular.io/releases{/id}","deployments_url":"https://api.github.com/repos/chalin/angular.io/deployments","created_at":"2016-04-21T16:07:37Z","updated_at":"2016-04-21T16:07:41Z","pushed_at":"2016-07-06T10:18:10Z","git_url":"git://github.com/chalin/angular.io.git","ssh_url":"git@github.com:chalin/angular.io.git","clone_url":"https://github.com/chalin/angular.io.git","svn_url":"https://github.com/chalin/angular.io","homepage":"https://angular.io","size":26354,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"d1e6a24987c261e2da6ad5eb225e91e9a1bed462","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":31985425,"name":"angular.io","full_name":"angular/angular.io","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular.io","description":"Website for Angular 2","fork":false,"url":"https://api.github.com/repos/angular/angular.io","forks_url":"https://api.github.com/repos/angular/angular.io/forks","keys_url":"https://api.github.com/repos/angular/angular.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular.io/teams","hooks_url":"https://api.github.com/repos/angular/angular.io/hooks","issue_events_url":"https://api.github.com/repos/angular/angular.io/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular.io/events","assignees_url":"https://api.github.com/repos/angular/angular.io/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular.io/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular.io/tags","blobs_url":"https://api.github.com/repos/angular/angular.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular.io/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular.io/languages","stargazers_url":"https://api.github.com/repos/angular/angular.io/stargazers","contributors_url":"https://api.github.com/repos/angular/angular.io/contributors","subscribers_url":"https://api.github.com/repos/angular/angular.io/subscribers","subscription_url":"https://api.github.com/repos/angular/angular.io/subscription","commits_url":"https://api.github.com/repos/angular/angular.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular.io/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular.io/merges","archive_url":"https://api.github.com/repos/angular/angular.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular.io/downloads","issues_url":"https://api.github.com/repos/angular/angular.io/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular.io/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular.io/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular.io/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular.io/releases{/id}","deployments_url":"https://api.github.com/repos/angular/angular.io/deployments","created_at":"2015-03-10T22:32:34Z","updated_at":"2016-07-06T07:06:38Z","pushed_at":"2016-07-06T09:16:40Z","git_url":"git://github.com/angular/angular.io.git","ssh_url":"git@github.com:angular/angular.io.git","clone_url":"https://github.com/angular/angular.io.git","svn_url":"https://github.com/angular/angular.io","homepage":"https://angular.io","size":34380,"stargazers_count":479,"watchers_count":479,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":519,"mirror_url":null,"open_issues_count":199,"forks":519,"open_issues":199,"watchers":479,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular.io/pulls/1819"},"html":{"href":"https://github.com/angular/angular.io/pull/1819"},"issue":{"href":"https://api.github.com/repos/angular/angular.io/issues/1819"},"comments":{"href":"https://api.github.com/repos/angular/angular.io/issues/1819/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular.io/pulls/1819/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular.io/pulls/1819/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular.io/statuses/13e7e070d1ca8a7e95f7d11ad98f10a202899038"}}}}
{"actor":{"display_login":"chalin"}}