mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-17 18:45:14 +00:00
Final VueJS Cheatsheet
This commit is contained in:
parent
9b88a9d406
commit
fd83adda70
@ -88,12 +88,12 @@ Vue.directive('my-directive', function () {
|
||||
// Getter, return the directive definition if registered
|
||||
var myDirective = Vue.directive('my-directive')
|
||||
|
||||
// Getter, return the filter if registered
|
||||
var myFilter = Vue.filter('my-filter')
|
||||
|
||||
// Register a global filter
|
||||
Vue.filter('my-filter', function (value) { })
|
||||
|
||||
// Getter, return the filter if registered
|
||||
var myFilter = Vue.filter('my-filter')
|
||||
|
||||
// Register an extended constructor
|
||||
Vue.component('my-component', Vue.extend({ }))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user