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