Last active
December 11, 2015 17:49
-
-
Save cloke/4637506 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.set('content.name', 'test'); | |
| Content isDirty is set to true and css class is added. | |
| record = App.Model.createRecord(); | |
| this.set('content', record); | |
| Content isDirty is set to true and css class is not added. | |
| {{view.content.isDirty}} | |
| <div class="label label-important" {{bindAttr class="view.content.isDirty:unsaved"}}>unsaved changes</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment