Check out this article 
(http://weblogs.asp.net/dwahlin/creating-custom-angularjs-directives-part-3-isolate-scope-and-function-parameters)
 
and see Option 2 where you do not need to match the parameter name. much 
slicker.


On Thursday, 18 October 2012 05:10:38 UTC+1, Jay B wrote:
>
> Hi folks!
>
> So I have a directive that has some parameters bound in the scope like so:
>
> scope: {
>  aVar: '=',
>  bVar: '&'
> }
>
> I also have a controller attached to the directive. This directive is 
> contained within a controller which passes a value and a function to the 
> directive. In the directive's controller, I call $scope.bVar(...) with a 
> parameter. The problem is that the parameter is does not seem to be passed 
> back through the delegate to the function.
>
> Please see this jsfiddle: http://jsfiddle.net/QM69A/8/
>
> Why doesn't this work? Should I go about this in a different fashion?
>
> Thanks!!
>

-- 
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.

Reply via email to