Welcome to the Treehouse Community
Looking to learn something new?
Tom Reddish1,320 Points
What is the point of using an isolate scope? Why not just pass through the entire scope instead of a specific part of it
He uses the isolate scope on the div in this video to only pass through the "person" object into the $scope.contact property. Why not just ignore the isolate scope and pass through the entire scope which would have the person object?
Igor Yamshchykov24,397 Points
using isolated scope you can't harm the data from other scope object. You also may want to change only one parent scope property and have some kind of dependencies. For instance you have variables i,j,k on parent scope and you want your directive to change only the one named 'i', but in order to change 'i' you need to modify 'j' and 'k' in your directive and don't want those changes apply to the parent scope, so in that case you might need isolated scope. Hope that make sense.