{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/8845","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/8845/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/8845/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/8845/events","html_url":"https://github.com/driftyco/ionic/issues/8845","id":184559096,"number":8845,"title":"RC1 Dynamic change color of buttons does not remove older color class","user":{"login":"fmaceachen","id":6725864,"avatar_url":"https://avatars.githubusercontent.com/u/6725864?v=3","gravatar_id":"","url":"https://api.github.com/users/fmaceachen","html_url":"https://github.com/fmaceachen","followers_url":"https://api.github.com/users/fmaceachen/followers","following_url":"https://api.github.com/users/fmaceachen/following{/other_user}","gists_url":"https://api.github.com/users/fmaceachen/gists{/gist_id}","starred_url":"https://api.github.com/users/fmaceachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmaceachen/subscriptions","organizations_url":"https://api.github.com/users/fmaceachen/orgs","repos_url":"https://api.github.com/users/fmaceachen/repos","events_url":"https://api.github.com/users/fmaceachen/events{/privacy}","received_events_url":"https://api.github.com/users/fmaceachen/received_events","type":"User","site_admin":false},"labels":[{"id":64885827,"url":"https://api.github.com/repos/driftyco/ionic/labels/css","name":"css","color":"5319e7","default":false},{"id":311009737,"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744","default":false}],"state":"closed","locked":false,"assignee":{"login":"brandyscarney","id":6577830,"avatar_url":"https://avatars.githubusercontent.com/u/6577830?v=3","gravatar_id":"","url":"https://api.github.com/users/brandyscarney","html_url":"https://github.com/brandyscarney","followers_url":"https://api.github.com/users/brandyscarney/followers","following_url":"https://api.github.com/users/brandyscarney/following{/other_user}","gists_url":"https://api.github.com/users/brandyscarney/gists{/gist_id}","starred_url":"https://api.github.com/users/brandyscarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandyscarney/subscriptions","organizations_url":"https://api.github.com/users/brandyscarney/orgs","repos_url":"https://api.github.com/users/brandyscarney/repos","events_url":"https://api.github.com/users/brandyscarney/events{/privacy}","received_events_url":"https://api.github.com/users/brandyscarney/received_events","type":"User","site_admin":false},"assignees":[{"login":"brandyscarney","id":6577830,"avatar_url":"https://avatars.githubusercontent.com/u/6577830?v=3","gravatar_id":"","url":"https://api.github.com/users/brandyscarney","html_url":"https://github.com/brandyscarney","followers_url":"https://api.github.com/users/brandyscarney/followers","following_url":"https://api.github.com/users/brandyscarney/following{/other_user}","gists_url":"https://api.github.com/users/brandyscarney/gists{/gist_id}","starred_url":"https://api.github.com/users/brandyscarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandyscarney/subscriptions","organizations_url":"https://api.github.com/users/brandyscarney/orgs","repos_url":"https://api.github.com/users/brandyscarney/repos","events_url":"https://api.github.com/users/brandyscarney/events{/privacy}","received_events_url":"https://api.github.com/users/brandyscarney/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/driftyco/ionic/milestones/45","html_url":"https://github.com/driftyco/ionic/milestones/2.0.0-rc.3","labels_url":"https://api.github.com/repos/driftyco/ionic/milestones/45/labels","id":2107041,"number":45,"title":"2.0.0-rc.3","description":"","creator":{"login":"jgw96","id":8823093,"avatar_url":"https://avatars.githubusercontent.com/u/8823093?v=3","gravatar_id":"","url":"https://api.github.com/users/jgw96","html_url":"https://github.com/jgw96","followers_url":"https://api.github.com/users/jgw96/followers","following_url":"https://api.github.com/users/jgw96/following{/other_user}","gists_url":"https://api.github.com/users/jgw96/gists{/gist_id}","starred_url":"https://api.github.com/users/jgw96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgw96/subscriptions","organizations_url":"https://api.github.com/users/jgw96/orgs","repos_url":"https://api.github.com/users/jgw96/repos","events_url":"https://api.github.com/users/jgw96/events{/privacy}","received_events_url":"https://api.github.com/users/jgw96/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":12,"state":"open","created_at":"2016-11-01T14:35:00Z","updated_at":"2016-11-11T01:46:25Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-10-21T20:13:24Z","updated_at":"2016-11-11T01:48:50Z","closed_at":"2016-11-11T01:39:31Z","body":"#### Short description of the problem:\n\nI have a button that changes color :\n`<button ion-button \n          outline=\"{{!button.selected && button.value !== value}}\"\n          color=\"{{(button.selected || button.value === value) ? button.value : 'dark'}}\"\n          (click)=\"setValue(button.value)\">\n    {{button.text}}\n  </button>`\n\nwhen button.value changes the button does change color, but if I change it again the first css class is not removed and it takes more importance as the OUTLINE one.\n#### What behavior are you expecting?\n\nWhen the color changes all css classes about color should be removed and then add then new one\n\n**Steps to reproduce:**\n1. Create a page with 3 buttons, with dynamic color (color=\"value\") and outline, Value must be in color scss variables\n2. Change value clicking on buttons\n3. Look that buttons that are not selected keep the first color\n\n```\n<button ion-button \n          outline=\"{{!button.selected && button.value !== value}}\"\n          color=\"{{(button.selected || button.value === value) ? button.value : 'dark'}}\"\n          (click)=\"setValue(button.value)\">\n    {{button.text}}\n  </button>\n```\n\n**Other information:** (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)\n https://forum.ionicframework.com/t/changing-button-color-or-icon-dynamically/37675/43\n\n**Which Ionic Version?** 1.x or 2.x\n2.0-RC1\n#### Plunker that shows an example of your issue\n\n**For Ionic 1 issues** - http://plnkr.co/edit/Xo1QyAUx35ny1Xf9ODHx?p=preview\n\n**For Ionic 2 issues** - http://plnkr.co/edit/me3Uk0GKWVRhZWU0usad?p=preview\n\n**Run `ionic info` from terminal/cmd prompt:** (paste output below)\n\nCordova CLI: 6.3.1\nGulp version:  CLI version 1.2.1\nGulp local:  \nIonic Framework Version: 2.0.0-rc.1\nIonic CLI Version: 2.1.1\nIonic App Lib Version: 2.1.1\nIonic App Scripts Version: 0.0.36\nios-deploy version: 1.8.7 \nios-sim version: 5.0.8 \nOS: Mac OS X Sierra\nNode Version: v6.0.0\nXcode version: Xcode 8.0 Build version 8A218a \n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/259860301","html_url":"https://github.com/driftyco/ionic/issues/8845#issuecomment-259860301","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/8845","id":259860301,"user":{"login":"brandyscarney","id":6577830,"avatar_url":"https://avatars.githubusercontent.com/u/6577830?v=3","gravatar_id":"","url":"https://api.github.com/users/brandyscarney","html_url":"https://github.com/brandyscarney","followers_url":"https://api.github.com/users/brandyscarney/followers","following_url":"https://api.github.com/users/brandyscarney/following{/other_user}","gists_url":"https://api.github.com/users/brandyscarney/gists{/gist_id}","starred_url":"https://api.github.com/users/brandyscarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandyscarney/subscriptions","organizations_url":"https://api.github.com/users/brandyscarney/orgs","repos_url":"https://api.github.com/users/brandyscarney/repos","events_url":"https://api.github.com/users/brandyscarney/events{/privacy}","received_events_url":"https://api.github.com/users/brandyscarney/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T01:48:50Z","updated_at":"2016-11-11T01:48:50Z","body":"Thanks to PR https://github.com/driftyco/ionic/pull/9114 this has been fixed. I released a nightly version of the framework (`ionic-angular@2.0.0-rc.2-201611110146`) with this fix, could you try it out and let me know if you find any issues?\r\n\r\n```\r\nnpm install --save ionic-angular@nightly\r\n```\r\n\r\nThanks!"}}
{"actor":{"display_login":"brandyscarney"}}