In my Angular2 application I have an object with some properties similar to this:
var person = {
firstname:"Tom",
lastname:"Hanks"
};
If one of these properties, for example "firstname" changes to "Bill", I would like to hide some elements in the HTML page. Is there any way to observe the changes of this object? What is the best way to do this using RxJS? I am a novice to Angular and RxJS.