{"action":"created","issue":{"url":"https://api.github.com/repos/mgechev/codelyzer/issues/61","repository_url":"https://api.github.com/repos/mgechev/codelyzer","labels_url":"https://api.github.com/repos/mgechev/codelyzer/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/codelyzer/issues/61/comments","events_url":"https://api.github.com/repos/mgechev/codelyzer/issues/61/events","html_url":"https://github.com/mgechev/codelyzer/issues/61","id":160754188,"node_id":"MDU6SXNzdWUxNjA3NTQxODg=","number":61,"title":"Feature request: allow use of host property in @Component if values are strings","user":{"login":"eppsilon","id":5643,"node_id":"MDQ6VXNlcjU2NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/5643?v=4","gravatar_id":"","url":"https://api.github.com/users/eppsilon","html_url":"https://github.com/eppsilon","followers_url":"https://api.github.com/users/eppsilon/followers","following_url":"https://api.github.com/users/eppsilon/following{/other_user}","gists_url":"https://api.github.com/users/eppsilon/gists{/gist_id}","starred_url":"https://api.github.com/users/eppsilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eppsilon/subscriptions","organizations_url":"https://api.github.com/users/eppsilon/orgs","repos_url":"https://api.github.com/users/eppsilon/repos","events_url":"https://api.github.com/users/eppsilon/events{/privacy}","received_events_url":"https://api.github.com/users/eppsilon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-16T20:33:01Z","updated_at":"2018-09-12T17:00:35Z","closed_at":"2016-09-21T20:43:14Z","author_association":"CONTRIBUTOR","body":"I would like a way to allow using the host property in component/directive decorators as long as the keys are being set to `string` values. For example, this code:\n\n``` ts\n@Component({\n  selector: 'my-component',\n  host: {\n    class: 'some-base-class some-modifier-class other-modifier-class'\n  }\n})\nclass MyComponent {}\n```\n\nseems more readable than:\n\n``` ts\n@Component({\n  selector: 'my-component'\n})\nclass MyComponent {\n  @HostBinding('class.some-base-class')\n  someBaseClass = true;\n\n  @HostBinding('class.some-modifier-class')\n  someModifierClass = true;\n\n  @HostBinding('class.other-modifier-class')\n  otherModifierClass = true;\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/mgechev/codelyzer/issues/comments/420722811","html_url":"https://github.com/mgechev/codelyzer/issues/61#issuecomment-420722811","issue_url":"https://api.github.com/repos/mgechev/codelyzer/issues/61","id":420722811,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDcyMjgxMQ==","user":{"login":"lazarljubenovic","id":7661457,"node_id":"MDQ6VXNlcjc2NjE0NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/7661457?v=4","gravatar_id":"","url":"https://api.github.com/users/lazarljubenovic","html_url":"https://github.com/lazarljubenovic","followers_url":"https://api.github.com/users/lazarljubenovic/followers","following_url":"https://api.github.com/users/lazarljubenovic/following{/other_user}","gists_url":"https://api.github.com/users/lazarljubenovic/gists{/gist_id}","starred_url":"https://api.github.com/users/lazarljubenovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazarljubenovic/subscriptions","organizations_url":"https://api.github.com/users/lazarljubenovic/orgs","repos_url":"https://api.github.com/users/lazarljubenovic/repos","events_url":"https://api.github.com/users/lazarljubenovic/events{/privacy}","received_events_url":"https://api.github.com/users/lazarljubenovic/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T17:00:35Z","updated_at":"2018-09-12T17:00:35Z","author_association":"CONTRIBUTOR","body":"I disabled this lint rule since there is 0 argument for avoiding `host` when binding literals. I often bind `tabindex` or `aria-*` o `role` up there. It makes much more sense than polluting the class with public stuff all over the place just to bind to the host. If we could have what the issue suggests, it would be useful again."}}
{"actor":{"display_login":"lazarljubenovic"}}