{"action":"opened","issue":{"url":"https://api.github.com/repos/Zecat/iron-scroll-spy/issues/6","repository_url":"https://api.github.com/repos/Zecat/iron-scroll-spy","labels_url":"https://api.github.com/repos/Zecat/iron-scroll-spy/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Zecat/iron-scroll-spy/issues/6/comments","events_url":"https://api.github.com/repos/Zecat/iron-scroll-spy/issues/6/events","html_url":"https://github.com/Zecat/iron-scroll-spy/issues/6","id":164660639,"number":6,"title":"Declarative approach?","user":{"login":"oneezy","id":7369575,"avatar_url":"https://avatars.githubusercontent.com/u/7369575?v=3","gravatar_id":"","url":"https://api.github.com/users/oneezy","html_url":"https://github.com/oneezy","followers_url":"https://api.github.com/users/oneezy/followers","following_url":"https://api.github.com/users/oneezy/following{/other_user}","gists_url":"https://api.github.com/users/oneezy/gists{/gist_id}","starred_url":"https://api.github.com/users/oneezy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneezy/subscriptions","organizations_url":"https://api.github.com/users/oneezy/orgs","repos_url":"https://api.github.com/users/oneezy/repos","events_url":"https://api.github.com/users/oneezy/events{/privacy}","received_events_url":"https://api.github.com/users/oneezy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-09T10:09:09Z","updated_at":"2016-07-09T10:09:09Z","closed_at":null,"body":"Recently I've been trying to adapt to the declarative way of doing things in Polymer..and I'm trying to make your demo work this way,,,\r\n\r\n**Currently your script inside of `demo/index.html` looks like:**\r\n\r\n```\r\n      <script>\r\n        var scope = document.getElementById(\"scope\");\r\n        scope.$.scrollSpy.scrollTarget = scope.$.headerPanel.scroller;\r\n      </script>\r\n```\r\n\r\n---\r\n\r\nHow can I make it work declartively?\r\n\r\n---\r\n\r\n**What I've got so far (not working):**\r\n\r\n```\r\n  <script>\r\n    Polymer({\r\n\r\n      is: 'scroll-spy-app',\r\n\r\n      properties: {\r\n          scrollSelected: {\r\n              type: Number,\r\n              value: 0\r\n          },\r\n      },\r\n\r\n      ready: function() {\r\n        this.$.scrollSpy.scrollTarget = this.$.headerPanel.scroller;\r\n      }\r\n    });\r\n  </script>\r\n```"}}
{"actor":{"display_login":"oneezy"}}