1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-18 08:34:06 +00:00

Final VueJS Cheatsheet

This commit is contained in:
Julien Le Coupanec 2017-12-02 00:46:12 +01:00
parent 9b88a9d406
commit fd83adda70

View File

@ -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({ }))