Last active
September 29, 2018 12:32
-
-
Save hightemp/11b017c3f8f758fd9d9012666966c48e to your computer and use it in GitHub Desktop.
Revisions
-
hightemp revised this gist
Sep 8, 2018 . 1 changed file with 16 additions and 1 deletion.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,4 +1,19 @@ # Vue snippets ## Watch vuex state changes ```javascript computed: { doneTodosCount () { return this.$store.getters.doneTodosCount } } watch:{ doneTodosCount(value) { console.log('My store value for 'doneTodosCount' changed to '+value); } } ``` ## Computed getters doesn't work ```javascript Vue.component( @@ -7,7 +22,7 @@ Vue.component( // ... computed: { sValue: { cache: false, // add this get () { // ... -
hightemp revised this gist
Aug 29, 2018 . 1 changed file with 18 additions and 11 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,17 +1,24 @@ # Vue snippets ## Computed getters doesn't work ```javascript Vue.component( 'component-name', { // ... computed: { sValue: { cache: false, get () { // ... }, set (sValue) { // ... } } }, // ... } ); ``` -
hightemp created this gist
Aug 29, 2018 .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,17 @@ # Vue snippets ## Computed getters doesn't work ```javascript computed: { sValue: { cache: false, get () { // }, set (sValue) { // } } }, ```