NativeScript 插件 nativescript-observable-subscribe
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: Android
- 软件首页: https://github.com/alexziskind1/nativescript-observable-subscribe
软件介绍
nativescript-observable-subscribe 是一个能添加订阅功能到 observables 的 NativeScript 模块。
使用:
// viewmodel.js
...
var mainViewModel = new HelloWorldModel();
var counterPropName = 'counter';
mainViewModel.subscribe(counterPropName, function(args){
if (this.get(counterPropName) <= 0) {
this.set(messagePropName, "Hoorraaay! You unlocked the NativeScript clicker achievement!");
}
else {
this.set(messagePropName, this.get(counterPropName) + " taps left");
}
}, mainViewModel);
exports.mainViewModel = mainViewModel;Learning Vue.js 2
Olga Filipova / Packt Publishing / 2017-1-5 / USD 41.99
About This Book Learn how to propagate DOM changes across the website without writing extensive jQuery callbacks code.Learn how to achieve reactivity and easily compose views with Vue.js and unders......一起来看看 《Learning Vue.js 2》 这本书的介绍吧!
MD5 加密
MD5 加密工具
RGB CMYK 转换工具
RGB CMYK 互转工具
