{"action":"created","comment":{"url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/comments/47606170","id":47606170,"diff_hunk":"@@ -0,0 +1,39 @@\n+var app = angular.module('makeithappen');\n+app.run(['RenderService', 'PathResolver', '$rootScope', function(RenderService, PathResolver, $rootScope) {\n+\n+    function PolymerControl() {\n+\n+        var instance;\n+        var path;\n+\n+        // set-up event binding\n+        document.addEventListener('WebComponentsReady', function() {\n+            var input = document.querySelector('paper-input');\n+            input.addEventListener('keyup', function() {\n+               instance[path] = input.value;\n+                $rootScope.$digest();\n+            });\n+        });\n+\n+        return {\n+            priority: 100,\n+            render: function(element, schema, schemaPath, services) {\n+                var control = JSONForms.RenderDescriptionFactory.createControlDescription(schemaPath, services, element);\n+                var data = services.get(JSONForms.ServiceId.DataProvider).getData();\n+                path = PathResolver.toInstancePath(schemaPath);\n+                instance = data;\n+                control['template'] =\n+                 '<div class=\"panel panel-default\">' +\n+                    '<paper-input type=\"text\" value=\"{{element.instance[\\'' + path + '\\']}}\" data-jsonforms-model label=\"Last name goes here\"></paper-input>' +","path":"examples/app/polymer/polymer.jsf.js","position":27,"original_position":27,"commit_id":"1df78c87a6579f9ebba0358ed148864629dd8871","original_commit_id":"1df78c87a6579f9ebba0358ed148864629dd8871","user":{"login":"eneufeld","id":1176277,"avatar_url":"https://avatars.githubusercontent.com/u/1176277?v=3","gravatar_id":"","url":"https://api.github.com/users/eneufeld","html_url":"https://github.com/eneufeld","followers_url":"https://api.github.com/users/eneufeld/followers","following_url":"https://api.github.com/users/eneufeld/following{/other_user}","gists_url":"https://api.github.com/users/eneufeld/gists{/gist_id}","starred_url":"https://api.github.com/users/eneufeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eneufeld/subscriptions","organizations_url":"https://api.github.com/users/eneufeld/orgs","repos_url":"https://api.github.com/users/eneufeld/repos","events_url":"https://api.github.com/users/eneufeld/events{/privacy}","received_events_url":"https://api.github.com/users/eneufeld/received_events","type":"User","site_admin":false},"body":"the paper-input has it own label? or why don't we use the jsonform-control directive?","created_at":"2015-12-15T07:55:18Z","updated_at":"2015-12-15T07:55:18Z","html_url":"https://github.com/eclipsesource/jsonforms/pull/154#discussion_r47606170","pull_request_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/154","_links":{"self":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/comments/47606170"},"html":{"href":"https://github.com/eclipsesource/jsonforms/pull/154#discussion_r47606170"},"pull_request":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/154"}}},"pull_request":{"url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/154","id":53547458,"html_url":"https://github.com/eclipsesource/jsonforms/pull/154","diff_url":"https://github.com/eclipsesource/jsonforms/pull/154.diff","patch_url":"https://github.com/eclipsesource/jsonforms/pull/154.patch","issue_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues/154","number":154,"state":"open","locked":false,"title":"Added polymer example","user":{"login":"edgarmueller","id":711092,"avatar_url":"https://avatars.githubusercontent.com/u/711092?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarmueller","html_url":"https://github.com/edgarmueller","followers_url":"https://api.github.com/users/edgarmueller/followers","following_url":"https://api.github.com/users/edgarmueller/following{/other_user}","gists_url":"https://api.github.com/users/edgarmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarmueller/subscriptions","organizations_url":"https://api.github.com/users/edgarmueller/orgs","repos_url":"https://api.github.com/users/edgarmueller/repos","events_url":"https://api.github.com/users/edgarmueller/events{/privacy}","received_events_url":"https://api.github.com/users/edgarmueller/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-14T10:34:40Z","updated_at":"2015-12-15T07:55:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9dafd2f57601616bfba6eb1bc094dd92b0187610","assignee":{"login":"eneufeld","id":1176277,"avatar_url":"https://avatars.githubusercontent.com/u/1176277?v=3","gravatar_id":"","url":"https://api.github.com/users/eneufeld","html_url":"https://github.com/eneufeld","followers_url":"https://api.github.com/users/eneufeld/followers","following_url":"https://api.github.com/users/eneufeld/following{/other_user}","gists_url":"https://api.github.com/users/eneufeld/gists{/gist_id}","starred_url":"https://api.github.com/users/eneufeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eneufeld/subscriptions","organizations_url":"https://api.github.com/users/eneufeld/orgs","repos_url":"https://api.github.com/users/eneufeld/repos","events_url":"https://api.github.com/users/eneufeld/events{/privacy}","received_events_url":"https://api.github.com/users/eneufeld/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/154/commits","review_comments_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/154/comments","review_comment_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues/154/comments","statuses_url":"https://api.github.com/repos/eclipsesource/jsonforms/statuses/1df78c87a6579f9ebba0358ed148864629dd8871","head":{"label":"edgarmueller:master","ref":"master","sha":"1df78c87a6579f9ebba0358ed148864629dd8871","user":{"login":"edgarmueller","id":711092,"avatar_url":"https://avatars.githubusercontent.com/u/711092?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarmueller","html_url":"https://github.com/edgarmueller","followers_url":"https://api.github.com/users/edgarmueller/followers","following_url":"https://api.github.com/users/edgarmueller/following{/other_user}","gists_url":"https://api.github.com/users/edgarmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarmueller/subscriptions","organizations_url":"https://api.github.com/users/edgarmueller/orgs","repos_url":"https://api.github.com/users/edgarmueller/repos","events_url":"https://api.github.com/users/edgarmueller/events{/privacy}","received_events_url":"https://api.github.com/users/edgarmueller/received_events","type":"User","site_admin":false},"repo":{"id":31428304,"name":"jsonforms","full_name":"edgarmueller/jsonforms","owner":{"login":"edgarmueller","id":711092,"avatar_url":"https://avatars.githubusercontent.com/u/711092?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarmueller","html_url":"https://github.com/edgarmueller","followers_url":"https://api.github.com/users/edgarmueller/followers","following_url":"https://api.github.com/users/edgarmueller/following{/other_user}","gists_url":"https://api.github.com/users/edgarmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarmueller/subscriptions","organizations_url":"https://api.github.com/users/edgarmueller/orgs","repos_url":"https://api.github.com/users/edgarmueller/repos","events_url":"https://api.github.com/users/edgarmueller/events{/privacy}","received_events_url":"https://api.github.com/users/edgarmueller/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edgarmueller/jsonforms","description":"AngularJS-based forms for JSON data.","fork":true,"url":"https://api.github.com/repos/edgarmueller/jsonforms","forks_url":"https://api.github.com/repos/edgarmueller/jsonforms/forks","keys_url":"https://api.github.com/repos/edgarmueller/jsonforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edgarmueller/jsonforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edgarmueller/jsonforms/teams","hooks_url":"https://api.github.com/repos/edgarmueller/jsonforms/hooks","issue_events_url":"https://api.github.com/repos/edgarmueller/jsonforms/issues/events{/number}","events_url":"https://api.github.com/repos/edgarmueller/jsonforms/events","assignees_url":"https://api.github.com/repos/edgarmueller/jsonforms/assignees{/user}","branches_url":"https://api.github.com/repos/edgarmueller/jsonforms/branches{/branch}","tags_url":"https://api.github.com/repos/edgarmueller/jsonforms/tags","blobs_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edgarmueller/jsonforms/statuses/{sha}","languages_url":"https://api.github.com/repos/edgarmueller/jsonforms/languages","stargazers_url":"https://api.github.com/repos/edgarmueller/jsonforms/stargazers","contributors_url":"https://api.github.com/repos/edgarmueller/jsonforms/contributors","subscribers_url":"https://api.github.com/repos/edgarmueller/jsonforms/subscribers","subscription_url":"https://api.github.com/repos/edgarmueller/jsonforms/subscription","commits_url":"https://api.github.com/repos/edgarmueller/jsonforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/edgarmueller/jsonforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/edgarmueller/jsonforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/edgarmueller/jsonforms/contents/{+path}","compare_url":"https://api.github.com/repos/edgarmueller/jsonforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edgarmueller/jsonforms/merges","archive_url":"https://api.github.com/repos/edgarmueller/jsonforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edgarmueller/jsonforms/downloads","issues_url":"https://api.github.com/repos/edgarmueller/jsonforms/issues{/number}","pulls_url":"https://api.github.com/repos/edgarmueller/jsonforms/pulls{/number}","milestones_url":"https://api.github.com/repos/edgarmueller/jsonforms/milestones{/number}","notifications_url":"https://api.github.com/repos/edgarmueller/jsonforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edgarmueller/jsonforms/labels{/name}","releases_url":"https://api.github.com/repos/edgarmueller/jsonforms/releases{/id}","created_at":"2015-02-27T16:30:18Z","updated_at":"2015-09-17T14:14:46Z","pushed_at":"2015-12-14T11:41:02Z","git_url":"git://github.com/edgarmueller/jsonforms.git","ssh_url":"git@github.com:edgarmueller/jsonforms.git","clone_url":"https://github.com/edgarmueller/jsonforms.git","svn_url":"https://github.com/edgarmueller/jsonforms","homepage":null,"size":24457,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"eclipsesource:master","ref":"master","sha":"de3476f74f3ae966eeffc94ca5b6dfba67a000a4","user":{"login":"eclipsesource","id":525860,"avatar_url":"https://avatars.githubusercontent.com/u/525860?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipsesource","html_url":"https://github.com/eclipsesource","followers_url":"https://api.github.com/users/eclipsesource/followers","following_url":"https://api.github.com/users/eclipsesource/following{/other_user}","gists_url":"https://api.github.com/users/eclipsesource/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipsesource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipsesource/subscriptions","organizations_url":"https://api.github.com/users/eclipsesource/orgs","repos_url":"https://api.github.com/users/eclipsesource/repos","events_url":"https://api.github.com/users/eclipsesource/events{/privacy}","received_events_url":"https://api.github.com/users/eclipsesource/received_events","type":"Organization","site_admin":false},"repo":{"id":30751591,"name":"jsonforms","full_name":"eclipsesource/jsonforms","owner":{"login":"eclipsesource","id":525860,"avatar_url":"https://avatars.githubusercontent.com/u/525860?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipsesource","html_url":"https://github.com/eclipsesource","followers_url":"https://api.github.com/users/eclipsesource/followers","following_url":"https://api.github.com/users/eclipsesource/following{/other_user}","gists_url":"https://api.github.com/users/eclipsesource/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipsesource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipsesource/subscriptions","organizations_url":"https://api.github.com/users/eclipsesource/orgs","repos_url":"https://api.github.com/users/eclipsesource/repos","events_url":"https://api.github.com/users/eclipsesource/events{/privacy}","received_events_url":"https://api.github.com/users/eclipsesource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipsesource/jsonforms","description":"AngularJS-based forms for JSON data.","fork":false,"url":"https://api.github.com/repos/eclipsesource/jsonforms","forks_url":"https://api.github.com/repos/eclipsesource/jsonforms/forks","keys_url":"https://api.github.com/repos/eclipsesource/jsonforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipsesource/jsonforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipsesource/jsonforms/teams","hooks_url":"https://api.github.com/repos/eclipsesource/jsonforms/hooks","issue_events_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues/events{/number}","events_url":"https://api.github.com/repos/eclipsesource/jsonforms/events","assignees_url":"https://api.github.com/repos/eclipsesource/jsonforms/assignees{/user}","branches_url":"https://api.github.com/repos/eclipsesource/jsonforms/branches{/branch}","tags_url":"https://api.github.com/repos/eclipsesource/jsonforms/tags","blobs_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipsesource/jsonforms/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipsesource/jsonforms/languages","stargazers_url":"https://api.github.com/repos/eclipsesource/jsonforms/stargazers","contributors_url":"https://api.github.com/repos/eclipsesource/jsonforms/contributors","subscribers_url":"https://api.github.com/repos/eclipsesource/jsonforms/subscribers","subscription_url":"https://api.github.com/repos/eclipsesource/jsonforms/subscription","commits_url":"https://api.github.com/repos/eclipsesource/jsonforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipsesource/jsonforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipsesource/jsonforms/contents/{+path}","compare_url":"https://api.github.com/repos/eclipsesource/jsonforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipsesource/jsonforms/merges","archive_url":"https://api.github.com/repos/eclipsesource/jsonforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipsesource/jsonforms/downloads","issues_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues{/number}","pulls_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipsesource/jsonforms/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipsesource/jsonforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipsesource/jsonforms/labels{/name}","releases_url":"https://api.github.com/repos/eclipsesource/jsonforms/releases{/id}","created_at":"2015-02-13T10:24:06Z","updated_at":"2015-12-09T08:00:12Z","pushed_at":"2015-12-14T14:19:16Z","git_url":"git://github.com/eclipsesource/jsonforms.git","ssh_url":"git@github.com:eclipsesource/jsonforms.git","clone_url":"https://github.com/eclipsesource/jsonforms.git","svn_url":"https://github.com/eclipsesource/jsonforms","homepage":null,"size":24606,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":19,"forks":10,"open_issues":19,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/154"},"html":{"href":"https://github.com/eclipsesource/jsonforms/pull/154"},"issue":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/issues/154"},"comments":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/154/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/154/commits"},"statuses":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/statuses/1df78c87a6579f9ebba0358ed148864629dd8871"}}}}