Thank you very much! Am Donnerstag, 18. Oktober 2012 06:33:36 UTC+2 schrieb Jay B: > > After some searching, I found the fix to pass parameters to a delegated > function in a directive. I don't believe this is clearly explained / > documented, so hopefully this will help someone out. > > See this jsfiddle: http://jsfiddle.net/QM69A/9/ (note the information in > the console log). > > The problem was that I had to include a parameter name in the directive > tag (b-var="testFunc(*aParamName*)") and then call the delegate with an > object map containing key/value pairs of parameter names to data mappings > in the directive controller ($scope.bVar({aParamName: "a value"})). > > Here is the blog that helped me along the way > http://onehungrymind.com/angularjs-sticky-notes-pt-2-isolated-scope/ and > its associated jsfiddle: http://jsfiddle.net/simpulton/VJ94U/ . >
-- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
