{"action":"created","comment":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/75048993","id":75048993,"diff_hunk":"@@ -0,0 +1,94 @@\n+<!doctype html>\n+<html ⚡>\n+<head>\n+  <meta charset=\"utf-8\">\n+  <title>amp-bind</title>\n+  <link rel=\"canonical\" href=\"amps.html\">\n+  <meta name=\"viewport\" content=\"width=device-width,minimum-scale=1,initial-scale=1\">\n+  <link href=\"https://fonts.googleapis.com/css?family=Questrial\" rel=\"stylesheet\" type=\"text/css\">\n+  <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>\n+  <script async src=\"https://cdn.ampproject.org/v0.js\"></script>\n+  <script async custom-element=\"amp-bind\" src=\"https://cdn.ampproject.org/v0/amp-bind-0.1.js\"></script>\n+  <script async custom-element=\"amp-carousel\" src=\"https://cdn.ampproject.org/v0/amp-carousel-0.1.js\"></script>\n+  <style amp-custom>\n+    body {\n+      margin: auto;\n+    }\n+    button {\n+      background-color: green;\n+    }\n+    button[disabled] {\n+      background-color: red;\n+    }\n+  </style>\n+</head>\n+\n+<body>\n+  <h2>Product Photo Gallary Using amp-bind</h2>\n+\n+  <amp-bind-dataset layout=\"nodisplay\">\n+    <script type=\"application/json\">\n+      {\n+        \"products\": [\n+          {\n+            \"id\": \"p1\",\n+            \"name\": \"Shampoo\",\n+            \"isOutOfStock\": false\n+          },\n+          {\n+            \"id\": \"p2\",\n+            \"name\": \"Soap\",\n+            \"isOutOfStock\": false\n+          },\n+          {\n+            \"id\": \"p3\",\n+            \"name\": \"Toothpaste\",\n+            \"isOutOfStock\": true\n+          }\n+        ]\n+      }\n+    </script>\n+  </amp-bind-dataset>\n+\n+  <amp-img src=\"https://placehold.it/300x400?text=Pick a Number\" width=\"300\" height=\"400\" layout=\"fixed\">\n+    <amp-bind-attribute layout=\"nodisplay\"\n+        attr=\"src\"\n+        value=\"{{'https://placehold.it/300x400?text=' + products.selected.id + ' - ' + products.selected.name}}\">\n+    </amp-bind-attribute>\n+  </amp-img>\n+\n+  <div class=\"thumbnails\">\n+    <amp-img src=\"https://placehold.it/50x50?text=1\" width=\"50\" height=\"50\" layout=\"fixed\">","path":"examples/bind-basic.amp.html","position":61,"original_position":61,"commit_id":"a23e5f4bc81bb070171d51e103cd7460896b582e","original_commit_id":"a23e5f4bc81bb070171d51e103cd7460896b582e","user":{"login":"dvoytenko","id":726049,"avatar_url":"https://avatars.githubusercontent.com/u/726049?v=3","gravatar_id":"","url":"https://api.github.com/users/dvoytenko","html_url":"https://github.com/dvoytenko","followers_url":"https://api.github.com/users/dvoytenko/followers","following_url":"https://api.github.com/users/dvoytenko/following{/other_user}","gists_url":"https://api.github.com/users/dvoytenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dvoytenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvoytenko/subscriptions","organizations_url":"https://api.github.com/users/dvoytenko/orgs","repos_url":"https://api.github.com/users/dvoytenko/repos","events_url":"https://api.github.com/users/dvoytenko/events{/privacy}","received_events_url":"https://api.github.com/users/dvoytenko/received_events","type":"User","site_admin":false},"body":"A bit of a conceptual overlap with the existing `on` action. I wonder if we could find a way to encode in the confines of the current system. E.g.\r\n```\r\n<amp-img on=\"tap:products.set(selected = ???)\">\r\n```\r\n","created_at":"2016-08-17T01:10:21Z","updated_at":"2016-08-17T01:10:21Z","html_url":"https://github.com/ampproject/amphtml/pull/4523#discussion_r75048993","pull_request_url":"https://api.github.com/repos/ampproject/amphtml/pulls/4523","_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/75048993"},"html":{"href":"https://github.com/ampproject/amphtml/pull/4523#discussion_r75048993"},"pull_request":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/4523"}}},"pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/4523","id":81357987,"html_url":"https://github.com/ampproject/amphtml/pull/4523","diff_url":"https://github.com/ampproject/amphtml/pull/4523.diff","patch_url":"https://github.com/ampproject/amphtml/pull/4523.patch","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/4523","number":4523,"state":"open","locked":false,"title":"DO NOT SUBMIT: Bind PR","user":{"login":"aghassemi","id":2099009,"avatar_url":"https://avatars.githubusercontent.com/u/2099009?v=3","gravatar_id":"","url":"https://api.github.com/users/aghassemi","html_url":"https://github.com/aghassemi","followers_url":"https://api.github.com/users/aghassemi/followers","following_url":"https://api.github.com/users/aghassemi/following{/other_user}","gists_url":"https://api.github.com/users/aghassemi/gists{/gist_id}","starred_url":"https://api.github.com/users/aghassemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aghassemi/subscriptions","organizations_url":"https://api.github.com/users/aghassemi/orgs","repos_url":"https://api.github.com/users/aghassemi/repos","events_url":"https://api.github.com/users/aghassemi/events{/privacy}","received_events_url":"https://api.github.com/users/aghassemi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-15T19:02:35Z","updated_at":"2016-08-17T01:10:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08d5ae5f63bf79fca86506594c7f67f59df8fdb5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ampproject/amphtml/pulls/4523/commits","review_comments_url":"https://api.github.com/repos/ampproject/amphtml/pulls/4523/comments","review_comment_url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/4523/comments","statuses_url":"https://api.github.com/repos/ampproject/amphtml/statuses/a23e5f4bc81bb070171d51e103cd7460896b582e","head":{"label":"aghassemi:hack-bind","ref":"hack-bind","sha":"a23e5f4bc81bb070171d51e103cd7460896b582e","user":{"login":"aghassemi","id":2099009,"avatar_url":"https://avatars.githubusercontent.com/u/2099009?v=3","gravatar_id":"","url":"https://api.github.com/users/aghassemi","html_url":"https://github.com/aghassemi","followers_url":"https://api.github.com/users/aghassemi/followers","following_url":"https://api.github.com/users/aghassemi/following{/other_user}","gists_url":"https://api.github.com/users/aghassemi/gists{/gist_id}","starred_url":"https://api.github.com/users/aghassemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aghassemi/subscriptions","organizations_url":"https://api.github.com/users/aghassemi/orgs","repos_url":"https://api.github.com/users/aghassemi/repos","events_url":"https://api.github.com/users/aghassemi/events{/privacy}","received_events_url":"https://api.github.com/users/aghassemi/received_events","type":"User","site_admin":false},"repo":{"id":62757350,"name":"amphtml","full_name":"aghassemi/amphtml","owner":{"login":"aghassemi","id":2099009,"avatar_url":"https://avatars.githubusercontent.com/u/2099009?v=3","gravatar_id":"","url":"https://api.github.com/users/aghassemi","html_url":"https://github.com/aghassemi","followers_url":"https://api.github.com/users/aghassemi/followers","following_url":"https://api.github.com/users/aghassemi/following{/other_user}","gists_url":"https://api.github.com/users/aghassemi/gists{/gist_id}","starred_url":"https://api.github.com/users/aghassemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aghassemi/subscriptions","organizations_url":"https://api.github.com/users/aghassemi/orgs","repos_url":"https://api.github.com/users/aghassemi/repos","events_url":"https://api.github.com/users/aghassemi/events{/privacy}","received_events_url":"https://api.github.com/users/aghassemi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aghassemi/amphtml","description":"AMP HTML source code, samples, and documentation.  See below for more info.","fork":true,"url":"https://api.github.com/repos/aghassemi/amphtml","forks_url":"https://api.github.com/repos/aghassemi/amphtml/forks","keys_url":"https://api.github.com/repos/aghassemi/amphtml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aghassemi/amphtml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aghassemi/amphtml/teams","hooks_url":"https://api.github.com/repos/aghassemi/amphtml/hooks","issue_events_url":"https://api.github.com/repos/aghassemi/amphtml/issues/events{/number}","events_url":"https://api.github.com/repos/aghassemi/amphtml/events","assignees_url":"https://api.github.com/repos/aghassemi/amphtml/assignees{/user}","branches_url":"https://api.github.com/repos/aghassemi/amphtml/branches{/branch}","tags_url":"https://api.github.com/repos/aghassemi/amphtml/tags","blobs_url":"https://api.github.com/repos/aghassemi/amphtml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aghassemi/amphtml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aghassemi/amphtml/git/refs{/sha}","trees_url":"https://api.github.com/repos/aghassemi/amphtml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aghassemi/amphtml/statuses/{sha}","languages_url":"https://api.github.com/repos/aghassemi/amphtml/languages","stargazers_url":"https://api.github.com/repos/aghassemi/amphtml/stargazers","contributors_url":"https://api.github.com/repos/aghassemi/amphtml/contributors","subscribers_url":"https://api.github.com/repos/aghassemi/amphtml/subscribers","subscription_url":"https://api.github.com/repos/aghassemi/amphtml/subscription","commits_url":"https://api.github.com/repos/aghassemi/amphtml/commits{/sha}","git_commits_url":"https://api.github.com/repos/aghassemi/amphtml/git/commits{/sha}","comments_url":"https://api.github.com/repos/aghassemi/amphtml/comments{/number}","issue_comment_url":"https://api.github.com/repos/aghassemi/amphtml/issues/comments{/number}","contents_url":"https://api.github.com/repos/aghassemi/amphtml/contents/{+path}","compare_url":"https://api.github.com/repos/aghassemi/amphtml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aghassemi/amphtml/merges","archive_url":"https://api.github.com/repos/aghassemi/amphtml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aghassemi/amphtml/downloads","issues_url":"https://api.github.com/repos/aghassemi/amphtml/issues{/number}","pulls_url":"https://api.github.com/repos/aghassemi/amphtml/pulls{/number}","milestones_url":"https://api.github.com/repos/aghassemi/amphtml/milestones{/number}","notifications_url":"https://api.github.com/repos/aghassemi/amphtml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aghassemi/amphtml/labels{/name}","releases_url":"https://api.github.com/repos/aghassemi/amphtml/releases{/id}","deployments_url":"https://api.github.com/repos/aghassemi/amphtml/deployments","created_at":"2016-07-06T22:26:50Z","updated_at":"2016-07-06T22:26:54Z","pushed_at":"2016-08-17T00:51:35Z","git_url":"git://github.com/aghassemi/amphtml.git","ssh_url":"git@github.com:aghassemi/amphtml.git","clone_url":"https://github.com/aghassemi/amphtml.git","svn_url":"https://github.com/aghassemi/amphtml","homepage":"https://ampproject.org","size":155343,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"ampproject:master","ref":"master","sha":"c3f26b318cdd1b37ff5f70fd117e7b54deae04c0","user":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"repo":{"id":41766002,"name":"amphtml","full_name":"ampproject/amphtml","owner":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ampproject/amphtml","description":"AMP HTML source code, samples, and documentation.  See below for more info.","fork":false,"url":"https://api.github.com/repos/ampproject/amphtml","forks_url":"https://api.github.com/repos/ampproject/amphtml/forks","keys_url":"https://api.github.com/repos/ampproject/amphtml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ampproject/amphtml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ampproject/amphtml/teams","hooks_url":"https://api.github.com/repos/ampproject/amphtml/hooks","issue_events_url":"https://api.github.com/repos/ampproject/amphtml/issues/events{/number}","events_url":"https://api.github.com/repos/ampproject/amphtml/events","assignees_url":"https://api.github.com/repos/ampproject/amphtml/assignees{/user}","branches_url":"https://api.github.com/repos/ampproject/amphtml/branches{/branch}","tags_url":"https://api.github.com/repos/ampproject/amphtml/tags","blobs_url":"https://api.github.com/repos/ampproject/amphtml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ampproject/amphtml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ampproject/amphtml/git/refs{/sha}","trees_url":"https://api.github.com/repos/ampproject/amphtml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ampproject/amphtml/statuses/{sha}","languages_url":"https://api.github.com/repos/ampproject/amphtml/languages","stargazers_url":"https://api.github.com/repos/ampproject/amphtml/stargazers","contributors_url":"https://api.github.com/repos/ampproject/amphtml/contributors","subscribers_url":"https://api.github.com/repos/ampproject/amphtml/subscribers","subscription_url":"https://api.github.com/repos/ampproject/amphtml/subscription","commits_url":"https://api.github.com/repos/ampproject/amphtml/commits{/sha}","git_commits_url":"https://api.github.com/repos/ampproject/amphtml/git/commits{/sha}","comments_url":"https://api.github.com/repos/ampproject/amphtml/comments{/number}","issue_comment_url":"https://api.github.com/repos/ampproject/amphtml/issues/comments{/number}","contents_url":"https://api.github.com/repos/ampproject/amphtml/contents/{+path}","compare_url":"https://api.github.com/repos/ampproject/amphtml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ampproject/amphtml/merges","archive_url":"https://api.github.com/repos/ampproject/amphtml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ampproject/amphtml/downloads","issues_url":"https://api.github.com/repos/ampproject/amphtml/issues{/number}","pulls_url":"https://api.github.com/repos/ampproject/amphtml/pulls{/number}","milestones_url":"https://api.github.com/repos/ampproject/amphtml/milestones{/number}","notifications_url":"https://api.github.com/repos/ampproject/amphtml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ampproject/amphtml/labels{/name}","releases_url":"https://api.github.com/repos/ampproject/amphtml/releases{/id}","deployments_url":"https://api.github.com/repos/ampproject/amphtml/deployments","created_at":"2015-09-01T22:10:53Z","updated_at":"2016-08-16T23:52:43Z","pushed_at":"2016-08-17T00:46:20Z","git_url":"git://github.com/ampproject/amphtml.git","ssh_url":"git@github.com:ampproject/amphtml.git","clone_url":"https://github.com/ampproject/amphtml.git","svn_url":"https://github.com/ampproject/amphtml","homepage":"https://ampproject.org","size":189346,"stargazers_count":8217,"watchers_count":8217,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1185,"mirror_url":null,"open_issues_count":666,"forks":1185,"open_issues":666,"watchers":8217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/4523"},"html":{"href":"https://github.com/ampproject/amphtml/pull/4523"},"issue":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/4523"},"comments":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/4523/comments"},"review_comments":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/4523/comments"},"review_comment":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/4523/commits"},"statuses":{"href":"https://api.github.com/repos/ampproject/amphtml/statuses/a23e5f4bc81bb070171d51e103cd7460896b582e"}}}}
{"actor":{"display_login":"dvoytenko"}}