{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular/issues/5400","labels_url":"https://api.github.com/repos/angular/angular/issues/5400/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/5400/comments","events_url":"https://api.github.com/repos/angular/angular/issues/5400/events","html_url":"https://github.com/angular/angular/issues/5400","id":117955593,"number":5400,"title":"Checkboxes lose state when initialized by localStorage, yet model remains correct","user":{"login":"jeremybradbury","id":1664387,"avatar_url":"https://avatars.githubusercontent.com/u/1664387?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremybradbury","html_url":"https://github.com/jeremybradbury","followers_url":"https://api.github.com/users/jeremybradbury/followers","following_url":"https://api.github.com/users/jeremybradbury/following{/other_user}","gists_url":"https://api.github.com/users/jeremybradbury/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremybradbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremybradbury/subscriptions","organizations_url":"https://api.github.com/users/jeremybradbury/orgs","repos_url":"https://api.github.com/users/jeremybradbury/repos","events_url":"https://api.github.com/users/jeremybradbury/events{/privacy}","received_events_url":"https://api.github.com/users/jeremybradbury/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T02:59:29Z","updated_at":"2015-11-20T04:39:58Z","closed_at":"2015-11-20T04:39:58Z","body":"This will create a value in LS (which i have also tested non-programmatically... editing chrome Resources), then initialize the controller. When grabbing true from local storage it doesn't check the checkbox. Yet the button which is based on the same model is visible. And the console log is true.\r\n\r\nhttp://jsfiddle.net/vgzxw7mt/1/\r\n\r\nI even tried using \"true\" and \"false\" as strings:\r\n\r\nhttp://jsfiddle.net/vgzxw7mt/2/\r\n\r\nAlso adding ng-checked to the same value as the model doesn't help because it makes the value always checked:\r\n\r\nhttp://jsfiddle.net/vgzxw7mt/3/\r\n\r\nI just want to save some checkbox values to localStorage and have my app remember which boxes are checked. Looks like I am going to have code a unique and creative solution for these broken boxes. \r\n\r\nAm I completely missing something here? Shouldn't this be fairly simple to implement?\r\n\r\nIf not, can/will this be fixed in the future?"}}