Same question here. Why using "scope: true" works and using "scope: {}"
doesn't work?
http://plnkr.co/edit/6RLVZjFauEAA4Es6MsdW?p=preview
On Saturday, February 1, 2014 8:45:10 PM UTC+2, Alexander Karelas wrote:
>
> This small example has been taken with minor modifications (to make it
> shorter) from the "AngularJS directives" book.
>
> Yet it does not work. In particular, the button does nothing (it should
> display a big "Yes").
>
> Could someone please help me and explain what's wrong with it?
>
> http://plnkr.co/edit/5wViVa9BikYryXmL3Ld9?p=preview
>
> P.S. The button works when scope is false, but not when (as in my
> example) scope is {}.
>
> Thank you,
>
> - Alex
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.