Skip to content

Instantly share code, notes, and snippets.

@pYr0x
Created May 8, 2018 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pYr0x/71249cf6e9cc7c67b9c207689a8845b7 to your computer and use it in GitHub Desktop.
Save pYr0x/71249cf6e9cc7c67b9c207689a8845b7 to your computer and use it in GitHub Desktop.
ViewModel: {
loading: {
default: 1,
get: function (lastSetValue, resolve) {
this.dataPromise.then(function() {
resolve(0);
});
if(lastSetValue === true){
return 1;
}else{
return 0;
}
},
type: "boolean"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment