I am trying to do something like
var foo = {
bar: '' // do some magic here
};
and only WHEN i need to use the value (later on the page) just simply call the property will run a lazy load and send back the value
The typical exemple is that I have a restfull API that load a user on page opening. After going to a menu I want to access the property related to it (another object), but it's in another api, and I don't want to load all at the opening.
Is there some kind of listener on property call ?