{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/3557","labels_url":"https://api.github.com/repos/angular/angular/issues/3557/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/3557/comments","events_url":"https://api.github.com/repos/angular/angular/issues/3557/events","html_url":"https://github.com/angular/angular/pull/3557","id":100029905,"number":3557,"title":"Proper cleanup in NgClass","user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/cla:%20yes","name":"cla: yes","color":"009800"},{"url":"https://api.github.com/repos/angular/angular/labels/pr_action:%20review","name":"pr_action: review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-10T10:28:06Z","updated_at":"2015-08-10T11:17:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular/angular/pulls/3557","html_url":"https://github.com/angular/angular/pull/3557","diff_url":"https://github.com/angular/angular/pull/3557.diff","patch_url":"https://github.com/angular/angular/pull/3557.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/129410918","html_url":"https://github.com/angular/angular/pull/3557#issuecomment-129410918","issue_url":"https://api.github.com/repos/angular/angular/issues/3557","id":129410918,"user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T11:17:45Z","updated_at":"2015-08-10T11:17:45Z","body":"@mhevery this is a follow up PR addressing [your comment](https://github.com/angular/angular/pull/3498#discussion_r36470381) in PR #3498. \r\n\r\nI've decided to not add binding to `class` since it would create strange corner cases, ex.:\r\n`<div class=\"{{exp}}\">` <-- throws since there is no `class` property vs.\r\n`<div class=\"{{exp}}\" ng-class=\"otherExp\">` <-- oh, now it works, but creates many corner cases since both expressions can change.\r\n\r\nInstead I'm injecting `@Attribute('class') initialClasses: string` so interpolation on `class` behaves consistently, regardless of the presence of the `NgClass` directive."}}