{"action":"created","issue":{"url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/340","repository_url":"https://api.github.com/repos/daniel-nagy/md-data-table","labels_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/340/comments","events_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/340/events","html_url":"https://github.com/daniel-nagy/md-data-table/issues/340","id":144258793,"number":340,"title":"Some error with ng-if","user":{"login":"hinablue","id":315136,"avatar_url":"https://avatars.githubusercontent.com/u/315136?v=3","gravatar_id":"","url":"https://api.github.com/users/hinablue","html_url":"https://github.com/hinablue","followers_url":"https://api.github.com/users/hinablue/followers","following_url":"https://api.github.com/users/hinablue/following{/other_user}","gists_url":"https://api.github.com/users/hinablue/gists{/gist_id}","starred_url":"https://api.github.com/users/hinablue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hinablue/subscriptions","organizations_url":"https://api.github.com/users/hinablue/orgs","repos_url":"https://api.github.com/users/hinablue/repos","events_url":"https://api.github.com/users/hinablue/events{/privacy}","received_events_url":"https://api.github.com/users/hinablue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-29T13:06:48Z","updated_at":"2016-03-29T17:10:08Z","closed_at":null,"body":"```\r\n<md-content ng-if=\"show\">\r\n  <md-table-container>\r\n    // more code here.\r\n  </md-table-container>\r\n</md-content>\r\n```\r\n\r\nIf switch the `show` from `true` to `false` and switch back. There are some `$watch` issue.\r\n\r\nhttps://github.com/daniel-nagy/md-data-table/blob/master/dist/md-data-table.js#L791\r\nhttps://github.com/daniel-nagy/md-data-table/blob/master/dist/md-data-table.js#L1250\r\n\r\nThere are two `$watch` get error `Watchers fired in the last 5 iterations` if the element use `ng-if`.\r\n\r\nAnd `md-limit-options` in `md-table-pagination` directive also get the same error, but I think maybe is the angular material javascript framework issue.\r\n\r\nSo, maybe make a trigger function to manual watch the `rowSelect`, `enableRowSelection` and `tableCtrl.enableMultiSelect` will be better."},"comment":{"url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/comments/203003422","html_url":"https://github.com/daniel-nagy/md-data-table/issues/340#issuecomment-203003422","issue_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/340","id":203003422,"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":"2016-03-29T17:10:08Z","updated_at":"2016-03-29T17:10:08Z","body":"Okay, I had a feeling something else was going on. If you manage to reproduce it I'll take a look."}}