The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Understanding Isolate Scope

Understanding Isolate Scope

6:38
By adding an isolated scope object to your AngularJS directive you can insure that each element using that directive has its own scope. This prevents it from affecting sibling directives and encapsulates the directive.
Watch this lesson now
Avatar
egghead.io

By adding an isolated scope object to your AngularJS directive you can insure that each element using that directive has its own scope. This prevents it from affecting sibling directives and encapsulates the directive.

Avatar
Roman Ganchenko

What is the shortcut in WebStorm to "Inspect Language"?
Answer: hit alt+enter and you will see it.
Great feature!
http://blog.jetbrains.com/phpstorm/2013/06/language-injection-in-phpstorm/

In reply to egghead.io
Avatar
Wayne

Its option + enter on a mac. :)

In reply to Roman Ganchenko
Avatar
Ben

The proliferation of the chore variable made this video a little bit confusing for me. The parameter name in the ChoreCtrl#logChore function, the name of the first parameter of the function in the done attribute, and the name of the model in the directive could all have been called something different.

I made a fiddle to play with the & binding. It might be helpful for anyone else that is still confused about why the directive template needed {chore: chore} http://jsfiddle.net/cL4guvxf/

Avatar
Chris Gat

I was confused in exactly the same way Ben. Thanks for the fiddle. Cleared things up

In reply to Ben
Avatar
Jared

What's a common application use-case for this sort of pattern? I like that the videos are concise, but I don't want to forget about applying individual features to large scale application architecture. Just some food for thought.

In reply to egghead.io
Avatar
Kostiantyn

Example that lead you with no doubt, based on teachers video example - https://jsbin.com/digiru/7/edit?html,js,output

Avatar
Jason

"once we start having multiple kids you start running into a lot of issues" lol! #parentHumor

Avatar
Paul

NIce one Ben. This was a great help.

In reply to Ben
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?