{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular.io/pulls/comments/68815931","id":68815931,"diff_hunk":"@@ -0,0 +1,47 @@\n+// #docplaster\n+// #docregion\n+import 'dart:async';\n+\n+import 'package:angular2/core.dart';\n+// #docregion import-router\n+import 'package:angular2/router.dart';\n+// #enddocregion import-router\n+\n+import 'hero.dart';\n+import 'hero_service.dart';\n+\n+@Component(\n+    selector: 'my-dashboard',\n+    // #docregion template-url\n+    templateUrl: 'dashboard_component.html',\n+    // #enddocregion template-url\n+    // #docregion css\n+    styleUrls: const ['dashboard_component.css']\n+    // #enddocregion css\n+    )\n+// #docregion component\n+class DashboardComponent implements OnInit {\n+  List<Hero> heroes;\n+\n+  // #docregion ctor\n+  final Router _router;\n+  final HeroService _heroService;\n+\n+  DashboardComponent(this._heroService, this._router);\n+\n+  // #enddocregion ctor\n+\n+  Future<Null> ngOnInit() async {","path":"public/docs/_examples/toh-6/dart/lib/dashboard_component.dart","position":34,"original_position":34,"commit_id":"a33ed7d8c9e418fa9232195e19ac9e9db8a6ef39","original_commit_id":"a33ed7d8c9e418fa9232195e19ac9e9db8a6ef39","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":"In the past @thso has been insistent on explicitly declaring return types, and I generally agree with this recommendation. ","created_at":"2016-06-28T18:34:35Z","updated_at":"2016-06-28T18:34:36Z","html_url":"https://github.com/angular/angular.io/pull/1687#discussion_r68815931","pull_request_url":"https://api.github.com/repos/angular/angular.io/pulls/1687","_links":{"self":{"href":"https://api.github.com/repos/angular/angular.io/pulls/comments/68815931"},"html":{"href":"https://github.com/angular/angular.io/pull/1687#discussion_r68815931"},"pull_request":{"href":"https://api.github.com/repos/angular/angular.io/pulls/1687"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular.io/pulls/1687","id":74316285,"html_url":"https://github.com/angular/angular.io/pull/1687","diff_url":"https://github.com/angular/angular.io/pull/1687.diff","patch_url":"https://github.com/angular/angular.io/pull/1687.patch","issue_url":"https://api.github.com/repos/angular/angular.io/issues/1687","number":1687,"state":"open","locked":false,"title":"docs(toh-6/dart): first edition of prose and example code","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":"NOTE: this PR depends on #1686.\r\n\r\nDart prose and example match the TS counterpart except that:\r\n- No child-to-parent event emission occurs.\r\n- Support for Add Hero is added as an unconditional feature of the Heroes view.\r\n- http `_post` takes only a name\r\n- http `delete` takes only a hero id.\r\n- The Dart in-memory-data-service has been dropped in favor of an\r\nimplementation based on the \"standard\" `http.testing.MockClient` class.\r\n\r\nFixes #1595.","created_at":"2016-06-17T22:58:53Z","updated_at":"2016-06-28T18:34:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf90f4bab3b0089fb8997fddda4eb9e149f6eb95","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/angular/angular.io/pulls/1687/commits","review_comments_url":"https://api.github.com/repos/angular/angular.io/pulls/1687/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/1687/comments","statuses_url":"https://api.github.com/repos/angular/angular.io/statuses/a33ed7d8c9e418fa9232195e19ac9e9db8a6ef39","head":{"label":"chalin:chalin-dart-toh-6-new-prose-and-code-0614","ref":"chalin-dart-toh-6-new-prose-and-code-0614","sha":"a33ed7d8c9e418fa9232195e19ac9e9db8a6ef39","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-06-28T17:47:45Z","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":25956,"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":"283195685f408c0b01bbba886f3365f7f4895003","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-06-28T14:29:42Z","pushed_at":"2016-06-28T18:18:04Z","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":33823,"stargazers_count":463,"watchers_count":463,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":499,"mirror_url":null,"open_issues_count":206,"forks":499,"open_issues":206,"watchers":463,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular.io/pulls/1687"},"html":{"href":"https://github.com/angular/angular.io/pull/1687"},"issue":{"href":"https://api.github.com/repos/angular/angular.io/issues/1687"},"comments":{"href":"https://api.github.com/repos/angular/angular.io/issues/1687/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular.io/pulls/1687/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/1687/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular.io/statuses/a33ed7d8c9e418fa9232195e19ac9e9db8a6ef39"}}}}
{"actor":{"display_login":"chalin"}}