Blear.classes.mvvm

前端 MVVM 模块,基于 vue@2.6.10

Version: 2.0.4 Updated: 07/05/2019

By: blearjs License: MIT

Downloads Last 30 Days: 176

blear.classes.mvvm

npm module build status coverage

usage

<div id="app">{{message}}</div>
+
var mvvm = new MVVM({
    el: '#app',
    data: {
        message: 'Hello blear'
    }
});
=
<div id="app">Hello blear</div>

Options

el

data

methods

watch

directives

api

#directive(name, definition)

#watch(expOrFn, callback, [options])

#destroy()

.directive(name, definition)

Categories: Vue js