If you want to access things in scope with your directives, you can't use an isolate scope.
You should probably not be accessing the outer scope directly. You can use the &sigil for your isolate scope declaration which will allow you to pass a callable expression as an attribute to your directive. On Thu, Feb 13, 2014 at 10:33 AM, Mirek Sz <[email protected]> wrote: > Hello, > I have problem with directive. I have page with table + modal dialog for > adding/editing new elements. > Now each row in my table is a directive. When I want edit row I call > method of controller in directive "edit", "edit" method open modal dialog > and set data in scope. > But scope of directive != scope of parent controller and my dialogs are > empty. > > How to manage this problem > > -- > 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. > -- chrisrhoden -- 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.
