Hi Charles,
This is not a bug. Transclusion creates a new scope. Your <div ng-click='showTheDialog=true'> sets the showTheDialog value inside that scope, in stead of where you expect it. If you use a function, it will get called, and sets the the value in the scope where you would expect it. To cut a long story short. Don’t use $scope, use controllerAs, and you will never have this kind of issue anymore. Regards Sander -- 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/d/optout.
