Hi, I have been trying to work out this problem for a long time before I have finally decided to ask in the forum, so please forgive if it seems simple. I have been trying to have multiple views via ng-view, and have multiple templates. So in the template I might want to access the controller via something like <button onclick="controller.callServer();"> for example, but I am unable to access the controller like this no matter what I have tried.... For example ,in the template if have tried the following :
<div ng-controller="Controller as controller"> .. ... .. button code in here </div> All the samples I find are very simple regarding the routing and using ng-view, so if someone could point me to a more complex and complete ng-view example with each view interacting etc, that would be awesome. If you like, I can put together an example simple code of what I am trying to do, but just in case it is a simple answer, I thought I would start with a simple question first. Thanks in advance for your help Cheers Jason -- 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.
