{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/lit-html/issues/573","repository_url":"https://api.github.com/repos/Polymer/lit-html","labels_url":"https://api.github.com/repos/Polymer/lit-html/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/lit-html/issues/573/comments","events_url":"https://api.github.com/repos/Polymer/lit-html/issues/573/events","html_url":"https://github.com/Polymer/lit-html/issues/573","id":371472096,"node_id":"MDU6SXNzdWUzNzE0NzIwOTY=","number":573,"title":"Consider an approach for assigning change events to avoid boiler plate code.","user":{"login":"akc42","id":368238,"node_id":"MDQ6VXNlcjM2ODIzOA==","avatar_url":"https://avatars1.githubusercontent.com/u/368238?v=4","gravatar_id":"","url":"https://api.github.com/users/akc42","html_url":"https://github.com/akc42","followers_url":"https://api.github.com/users/akc42/followers","following_url":"https://api.github.com/users/akc42/following{/other_user}","gists_url":"https://api.github.com/users/akc42/gists{/gist_id}","starred_url":"https://api.github.com/users/akc42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akc42/subscriptions","organizations_url":"https://api.github.com/users/akc42/orgs","repos_url":"https://api.github.com/users/akc42/repos","events_url":"https://api.github.com/users/akc42/events{/privacy}","received_events_url":"https://api.github.com/users/akc42/received_events","type":"User","site_admin":false},"labels":[{"id":819675803,"node_id":"MDU6TGFiZWw4MTk2NzU4MDM=","url":"https://api.github.com/repos/Polymer/lit-html/labels/Priority:%20Low","name":"Priority: Low","color":"009800","default":false},{"id":819675788,"node_id":"MDU6TGFiZWw4MTk2NzU3ODg=","url":"https://api.github.com/repos/Polymer/lit-html/labels/Status:%20Completed","name":"Status: Completed","color":"006b75","default":false},{"id":819675797,"node_id":"MDU6TGFiZWw4MTk2NzU3OTc=","url":"https://api.github.com/repos/Polymer/lit-html/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-18T10:51:42Z","updated_at":"2018-11-20T23:58:04Z","closed_at":"2018-11-20T23:58:04Z","author_association":"NONE","body":"A pattern that is seemingly coming up a lot as I move over from Polymer 3 is\r\n```\r\n<my-sub-element .property=${this.myInterpretation} @property-changed=${this._myInterpretationChanged}></my-sub-element>\r\n....\r\n_myInterpretationChanged(e) {\r\nthis.myInterpretation = e.currentTarget.property;\r\n}\r\n```\r\nThis is all boiler plate that could be done away with if I could do something like this\r\n```\r\n<my-sub-element @property=${'myInterpretation'}></my-sub-element>\r\n```\r\nThe key difference is that the '@' marker either takes a function (for the old way) or a string - which becomes the name of a local property that is two way databound. (Obviously a different character than @ could be used - it just seemed a way of not adding a whole new type - I have no opinion one way or the other)"},"comment":{"url":"https://api.github.com/repos/Polymer/lit-html/issues/comments/440473258","html_url":"https://github.com/Polymer/lit-html/issues/573#issuecomment-440473258","issue_url":"https://api.github.com/repos/Polymer/lit-html/issues/573","id":440473258,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDQ3MzI1OA==","user":{"login":"justinfagnani","id":522948,"node_id":"MDQ6VXNlcjUyMjk0OA==","avatar_url":"https://avatars0.githubusercontent.com/u/522948?v=4","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T23:58:04Z","updated_at":"2018-11-20T23:58:04Z","author_association":"COLLABORATOR","body":"Going to close this now. We don't have plans for such a directive, but third parties could vend one."}}
{"actor":{"display_login":"justinfagnani"}}