Hi Asicfr. > - The view (html) knows only the main controller and his scope > Not true, the template/html, knows:
- the scope of the defined ngController - the defined controller itself when the controllerAs is used. - all he $parent scopes. - the controllers from directives when exposed with controllerAs > - A directive should not have his own services > also not true, there is no issue injecting services into directives, and/or directives controllers. > *So :* > - The view (html) cannot call the services directly. > It can, but it's not somethign taht's done often. > - The view (html) must use the main controller to access the services. > It can use any of the above mechanisms > - The view must declare the binding between the directive and the main > controller > Among quite some other options yes, Given the above I think you might need to reevaluate.Angular does not enforce strict rules on how you code. It provides guidance, on how to implement long proven paradigms, but you are free to program as you want. 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.
