Last active
February 20, 2017 23:27
Revisions
-
arthur5005 revised this gist
Feb 20, 2017 . 2 changed files with 3 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ import Ember from 'ember'; export default Ember.Controller.extend({ appName: 'Notify Property Change Doesn\'t Force a Rerender', value: null, actions: { setValueToNull() { @@ -10,6 +10,7 @@ export default Ember.Controller.extend({ }, setValueToFoo() { this.set('value', 'foo'); this.notifyPropertyChange('value'); } } }); 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ <h1>{{appName}}</h1> <br> <br> {{outlet}} -
arthur5005 created this gist
Feb 20, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ import Ember from 'ember'; export default Ember.Controller.extend({ appName: 'Ember Twiddle', value: null, actions: { setValueToNull() { this.set('value', null); this.notifyPropertyChange('value'); }, setValueToFoo() { this.set('value', 'foo'); } } });
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ <h1>Welcome to {{appName}}</h1> <br> <br> {{outlet}} <input value={{value}}> <button {{action "setValueToNull"}}>Set Value to null!</button> <button {{action "setValueToFoo"}}>Set Value to Foo!</button> <br> <br> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ { "version": "0.11.0", "EmberENV": { "FEATURES": {} }, "options": { "use_pods": false, "enable-testing": false }, "dependencies": { "jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", "ember": "2.10.2", "ember-data": "2.11.0", "ember-template-compiler": "2.10.2", "ember-testing": "2.10.2" }, "addons": {} }