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
/* | |
* Loads components from this directory with the name format of 'base-{name}.vue'. | |
* Components are registered globally. | |
* Note - don't do this for every component as this will bloat your bundles | |
*/ | |
import Vue from 'vue'; | |
import upperFirst from 'lodash/upperFirst'; | |
import camelCase from 'lodash/camelCase'; |
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
// Typical pattern | |
created() { | |
this.fetchUserList(); | |
}, | |
watch: { | |
searchText() { | |
this.fetchUserList(); | |
} | |
} |
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
(function(window){ | |
window.vs = window.vs || {}; | |
window.vs.debounce = window.vs.debounce || debounce; | |
// Snatched debounce function from underscore.js | |
function debounce(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; |
NewerOlder