NativeScript 插件 nativescript-observable-subscribe

码农软件 · 软件分类 · NativeScript 插件 · 2019-04-29 10:43:00

软件介绍

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;


本文地址:https://codercto.com/soft/d/4631.html

Sexy Web Design

Sexy Web Design

Elliot Stocks / SitePoint / 2009-03-28 / $39.95

Description A guide to building usable, aesthetically pleasing interfaces for web sites and web applications by applying timeless principles of user-centered design. This book focuses on practical ......一起来看看 《Sexy Web Design》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具