I'm working on an ionic 2 project which uses angular 2.
I just have this in mind if there's a way I can create a variable to bind to another variable(s).
Let's say,
let x = 1;
let y = x;
where y will have the exact value of x even when it changes.
And if it does work, can I also do this?
let x = 1;
let y = 1;
let z = x + 1;
I'd like to know if this is possible or not. Just had this in mind. Thanks and cheers!