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

Isolate Scope "="

Isolate Scope "="

2:51
Perhaps the most useful of the isolate scope binding methods, this episode talks about the use of "=" for two way binding within your directives.
Watch this lesson now
Avatar
egghead.io

Perhaps the most useful of the isolate scope binding methods, this episode talks about the use of "=" for two way binding within your directives.

Avatar
Mike

I'm a little confused about the usefulness of this particular method. In your description you say it's "Perhaps the most useful of the isolate scope binding methods" but in the actual video you say it might seem useful but the other 2 methods "@" and "&" are used much more often. Can you please clarify about this? There are many ways to do things in Angular so I think it's really important not to confuse newbies (like myself) with these conflicting descriptions. Thanks!

In reply to egghead.io
Avatar
Jordan

I'm also new and having trouble seeing how this is useful. In what situation would I want to use this?

In reply to Mike
Avatar
Jonathan

I had a hard time with this in my code because I had camel-case variable names. I forgot the AngularJS 101 naming convention on the conversion of CamelCase to dashes:

scope: {
myName: "="
}

is an attribute that looks like:
<custom-directive my-name="John" >

Not:

<custom-directive myName="John" >

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