{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/12601","labels_url":"https://api.github.com/repos/angular/angular.js/issues/12601/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/12601/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/12601/events","html_url":"https://github.com/angular/angular.js/issues/12601","id":101423079,"number":12601,"title":"ng-class Directive: Unexpected behavior in Angular 1.4.4","user":{"login":"daniel-nagy","id":1622446,"avatar_url":"https://avatars.githubusercontent.com/u/1622446?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-nagy","html_url":"https://github.com/daniel-nagy","followers_url":"https://api.github.com/users/daniel-nagy/followers","following_url":"https://api.github.com/users/daniel-nagy/following{/other_user}","gists_url":"https://api.github.com/users/daniel-nagy/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-nagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-nagy/subscriptions","organizations_url":"https://api.github.com/users/daniel-nagy/orgs","repos_url":"https://api.github.com/users/daniel-nagy/repos","events_url":"https://api.github.com/users/daniel-nagy/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-nagy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20ngAnimate","name":"component: ngAnimate","color":"bfdadc"},{"url":"https://api.github.com/repos/angular/angular.js/labels/needs:%20more%20info","name":"needs: more info","color":"d7eb9f"},{"url":"https://api.github.com/repos/angular/angular.js/labels/severity:%20regression","name":"severity: regression","color":"e11d21"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20bug","name":"type: bug","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/35","html_url":"https://github.com/angular/angular.js/milestones/Purgatory","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/35/labels","id":526241,"number":35,"title":"Purgatory","description":"This milestone is for issues and PRs that weren't accepted yet and we are waiting for more info from the submitter.\r\n\r\nFor issues this typically means that we weren't able to reproduce the issue or we haven't decided yet if a feature request is a good idea at all.\r\n\r\nFor PRs this means that the PR still needs a lot of work and we might not even be interested in merging it because it looks like a non-core feature. We are still waiting for more discussion within the team or more info from the contributor before making the final decision.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":123,"closed_issues":448,"state":"open","created_at":"2014-01-04T01:20:50Z","updated_at":"2015-08-20T15:38:22Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-08-17T13:42:30Z","updated_at":"2015-08-20T16:23:52Z","closed_at":null,"body":"Hi, I am the author of the unofficial [Material Design Data Table](https://github.com/daniel-nagy/md-data-table) for Angular Material. With the release of Angular 1.4.4 row selection exhibits some unexpected behavior.\r\n\r\nThe logic for row selection seems to still be working; however, the visual state of the checkbox is not always accurate. I suspect the issue may be related to the `ng-class` directive but I can't say for sure.\r\n\r\n```html\r\n<!-- ngClass definition on checkbox element -->\r\n<md-checkbox ng-class=\"[mdClasses, {'md-checked': allSelected()}]\"></md-checkbox>\r\n```\r\n\r\nTo reproduce this issue visit this [Pen](http://codepen.io/anon/pen/mJgzQK?editors=101) using the 1.4.4 CDN.\r\n\r\n1. Select the checkbox in the table header to select all rows.\r\n2. Select one row in the table body\r\n3. Select the checkbox in the table header again to select all rows\r\n\r\nYou will notice that all rows are selected but the `md-checked` class has not been applied to the checkbox in the table header. Furthermore, if you open the developer tools, select the checkbox element in the table header and type\r\n\r\n```javascript\r\nangular.element($0).scope().allSelected() -> true\r\n```\r\n\r\n> I don't think angular is defined in the console within Codepen, you may have to run the app locally to do this.\r\n\r\nThis of course is not the only way to reproduce this issue, just the easiest way to reproduce it every time.\r\n\r\nTo see row selection working properly you can visit this [Pen](http://codepen.io/anon/pen/zGXWWp?editors=101) using Angular 1.4.3"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/133065806","html_url":"https://github.com/angular/angular.js/issues/12601#issuecomment-133065806","issue_url":"https://api.github.com/repos/angular/angular.js/issues/12601","id":133065806,"user":{"login":"daniel-nagy","id":1622446,"avatar_url":"https://avatars.githubusercontent.com/u/1622446?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-nagy","html_url":"https://github.com/daniel-nagy","followers_url":"https://api.github.com/users/daniel-nagy/followers","following_url":"https://api.github.com/users/daniel-nagy/following{/other_user}","gists_url":"https://api.github.com/users/daniel-nagy/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-nagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-nagy/subscriptions","organizations_url":"https://api.github.com/users/daniel-nagy/orgs","repos_url":"https://api.github.com/users/daniel-nagy/repos","events_url":"https://api.github.com/users/daniel-nagy/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-nagy/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T16:23:52Z","updated_at":"2015-08-20T16:23:52Z","body":"@gkalpak thanks! that is useful information."}}