-
-
Save rwjblue/2d80d71daa9a9a99676aef471cb55b90 to your computer and use it in GitHub Desktop.
Revisions
-
rwjblue revised this gist
Nov 11, 2020 . 1 changed file with 3 additions and 7 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 @@ -8,12 +8,8 @@ "enable-testing": false }, "dependencies": { "ember": "3.22.1", "ember-template-compiler": "3.22.1", "ember-testing": "3.22.1" } } -
mpugach revised this gist
Aug 30, 2017 . 2 changed files with 2 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 @@ -9,7 +9,7 @@ export default Ember.Controller.extend({ serachQuery: '', actions: { addCategory() { this.get('categories').pushObject(1); } }, 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 @@ -2,7 +2,7 @@ <br> {{model}} <br> <button {{action "addCategory"}}>Add category</button> <br> {{input value=searchQuery}} <br> -
mpugach revised this gist
Aug 30, 2017 . No changes.There are no files selected for viewing
-
mpugach created this gist
Aug 30, 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', queryParams: ['categories', 'serachQuery'], categories: [], serachQuery: '', actions: { setCategories() { this.get('categories').pushObject(1); } }, }); 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,29 @@ import Ember from 'ember'; export default Ember.Route.extend({ queryParams: { categories: { type: 'array', refreshModel: true, }, searchQuery: { refreshModel: true, } }, model(params) { console.log('categories', params.categories); return new Promise(resolve => setTimeout(resolve, 1000)).then(() => new Date); }, actions: { willTransition() { console.log('willTransition'); }, didTransition() { console.log('didTransition'); }, }, }); 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> {{model}} <br> <button {{action "setCategories"}}>Set categories</button> <br> {{input value=searchQuery}} <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,19 @@ { "version": "0.12.1", "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.12.0", "ember-template-compiler": "2.12.0", "ember-testing": "2.12.0" }, "addons": { "ember-data": "2.12.1" } }