{"action":"created","issue":{"url":"https://api.github.com/repos/RevillWeb/rebel-router/issues/3","repository_url":"https://api.github.com/repos/RevillWeb/rebel-router","labels_url":"https://api.github.com/repos/RevillWeb/rebel-router/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/RevillWeb/rebel-router/issues/3/comments","events_url":"https://api.github.com/repos/RevillWeb/rebel-router/issues/3/events","html_url":"https://github.com/RevillWeb/rebel-router/issues/3","id":163014973,"number":3,"title":"Polymer-Native / HTML-Native integration","user":{"login":"PixelsCommander","id":810671,"avatar_url":"https://avatars.githubusercontent.com/u/810671?v=3","gravatar_id":"","url":"https://api.github.com/users/PixelsCommander","html_url":"https://github.com/PixelsCommander","followers_url":"https://api.github.com/users/PixelsCommander/followers","following_url":"https://api.github.com/users/PixelsCommander/following{/other_user}","gists_url":"https://api.github.com/users/PixelsCommander/gists{/gist_id}","starred_url":"https://api.github.com/users/PixelsCommander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PixelsCommander/subscriptions","organizations_url":"https://api.github.com/users/PixelsCommander/orgs","repos_url":"https://api.github.com/users/PixelsCommander/repos","events_url":"https://api.github.com/users/PixelsCommander/events{/privacy}","received_events_url":"https://api.github.com/users/PixelsCommander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-06-29T20:08:47Z","updated_at":"2016-07-05T15:39:48Z","closed_at":null,"body":"You may follow these steps to start making changes in PN repo https://github.com/PixelsCommander/polymer-native/blob/master/README.md#contributor-guide\r\n\r\nBasically you can fork PN https://github.com/PixelsCommander/polymer-native and try to refactor https://github.com/PixelsCommander/polymer-native/tree/master/partials/js-library/src/elements/router to extend your elements but still have logic as following:\r\n\r\nRouter should:\r\n\r\n1.Have tagName ```<native-router>``` (extend rebel-router) because native part of PN reacts on tagName to produce native classes\r\n\r\n2.When created execute logic from PnBaseElement.createdCallback https://github.com/PixelsCommander/polymer-native/blob/master/partials/js-library/src/elements/base/pn-base-element.js#L4\r\n\r\n- Get this.polymerNative.id with polymerNativeClient.utils.getNextId();\r\n- Register at elements object\r\n\r\n3.When attached execute logic from PnBaseElement.attachedCallback  https://github.com/PixelsCommander/polymer-native/blob/master/partials/js-library/src/elements/base/pn-base-element.js#L10\r\n\r\n- Call self.updateSerializedProperties to form text package to be sent to native bridge\r\n- Call polymerNativeHost.createElement(self.polymerNative.serializedProperties);\r\n\r\nRoute shoule have tagName ```<native-route>``` (extend rebel-route) and implement 2,3 as well as router.\r\n\r\nWhen route is changed call window.polymerNativeHost.activateRoute(self.polymerNative.id);"},"comment":{"url":"https://api.github.com/repos/RevillWeb/rebel-router/issues/comments/230515961","html_url":"https://github.com/RevillWeb/rebel-router/issues/3#issuecomment-230515961","issue_url":"https://api.github.com/repos/RevillWeb/rebel-router/issues/3","id":230515961,"user":{"login":"RevillWeb","id":2720042,"avatar_url":"https://avatars.githubusercontent.com/u/2720042?v=3","gravatar_id":"","url":"https://api.github.com/users/RevillWeb","html_url":"https://github.com/RevillWeb","followers_url":"https://api.github.com/users/RevillWeb/followers","following_url":"https://api.github.com/users/RevillWeb/following{/other_user}","gists_url":"https://api.github.com/users/RevillWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/RevillWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RevillWeb/subscriptions","organizations_url":"https://api.github.com/users/RevillWeb/orgs","repos_url":"https://api.github.com/users/RevillWeb/repos","events_url":"https://api.github.com/users/RevillWeb/events{/privacy}","received_events_url":"https://api.github.com/users/RevillWeb/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T15:39:48Z","updated_at":"2016-07-05T15:39:48Z","body":"Yes fine. I actually have Version 7.3.1 (7D1014) - not sure that would make a big difference?"}}
{"actor":{"display_login":"RevillWeb"}}