25
rated 0 times
[
28]
[
3]
/ answers: 1 / hits: 15770
/ 12 Years ago, sat, november 17, 2012, 12:00:00
I have this typescript code:
module MyPage {
export class MyVm {
ToDo : string;
Load() {
//can access todo here by using this:
this.ToDo = test;
$.get(GetUrl, function (servertodos) {
//but how do I get to Todo here??
this.ToDo(servertodos); //WRONG ToDo..
});
}
}
}
The question is, how do I access the todo member field in the $.get callback?
More From » typescript