Monday, 15 September 2014

knockout.js - How to subscribe to changes Knockout Observable in TypeScript? -


How to subscribe to knockout viewable changes in typecript?

  Data: Knockoutobservable & lt; String & gt; = Co.obsaveable & lt; String & gt; ();  

I want something like this:

  Data.subscribe (function (e) {}) ?? Type script is the only way to write your javascript.  

This does not make a difference in knockout.

So, you can write your membership in the following manner (like JavaScript)

  Data.subscribe (function (new value) {warning (newline); });  

No comments:

Post a Comment