{"action":"created","issue":{"url":"https://api.github.com/repos/skatejs/skatejs/issues/1347","repository_url":"https://api.github.com/repos/skatejs/skatejs","labels_url":"https://api.github.com/repos/skatejs/skatejs/issues/1347/labels{/name}","comments_url":"https://api.github.com/repos/skatejs/skatejs/issues/1347/comments","events_url":"https://api.github.com/repos/skatejs/skatejs/issues/1347/events","html_url":"https://github.com/skatejs/skatejs/issues/1347","id":294141334,"node_id":"MDU6SXNzdWUyOTQxNDEzMzQ=","number":1347,"title":"Instance properties with special formats.","user":{"login":"trusktr","id":297678,"node_id":"MDQ6VXNlcjI5NzY3OA==","avatar_url":"https://avatars3.githubusercontent.com/u/297678?v=4","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-03T20:12:54Z","updated_at":"2018-08-19T05:33:55Z","closed_at":"2018-08-19T05:33:55Z","author_association":"CONTRIBUTOR","body":"(not sure if this is a feature request yet)\r\n\r\nOn my custom elements, I can do this:\r\n\r\n```js\r\nel.rotation = {x:30, y:30, z:30}\r\n```\r\n\r\nThis corresponds to the `props.object` type, which means we can do\r\n\r\n```html\r\n<i-box rotation=\"{x:30, y:30, z:30}\">\r\n```\r\n\r\nwhich will deserialize the string into an object and set the property similarly.\r\n\r\nI'm just wondering, if it would be worth somehow restricting the the object format? Maybe that's too much overhead? But presumably, attributes should only be deserialized on initial page load and after that instance properties should be used always.\r\n\r\nOn my elements we can also do\r\n\r\n```js\r\nel.rotation.y = 30\r\n```\r\n\r\nSo I'm wondering if it's possible to do something like\r\n\r\n```html\r\n<i-box rotation.y=\"30\">\r\n```\r\n\r\nand have that value passed to the sub-property. Does that seem doable? If so, could it be typeable with `props.*`?"},"comment":{"url":"https://api.github.com/repos/skatejs/skatejs/issues/comments/414104827","html_url":"https://github.com/skatejs/skatejs/issues/1347#issuecomment-414104827","issue_url":"https://api.github.com/repos/skatejs/skatejs/issues/1347","id":414104827,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDEwNDgyNw==","user":{"login":"trusktr","id":297678,"node_id":"MDQ6VXNlcjI5NzY3OA==","avatar_url":"https://avatars3.githubusercontent.com/u/297678?v=4","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"created_at":"2018-08-19T05:33:55Z","updated_at":"2018-08-19T05:33:55Z","author_association":"CONTRIBUTOR","body":"#1493 (and related PR #1509) solves lots of problems including this one! I think #1509 is really worth considering."}}
{"actor":{"display_login":"trusktr"}}