I\'m new to Angular, so I\'m trying to follow tutorial and just don\'t get it.What confuses me is the dot notation:
In the first code, data
as an object is a common object between three scopes and each scope has reference to data.So when data.message
is changed all three scope show the changed message.
But in the second case the message
is a string witch is a value type not an object. Each scope has its own message and changing one of theme will not effect others.