Hi, based on controller inheritance you something like this
<div ng-controller="TestCtrl1">
<div ng-controller="TestCtrl2">
</div>
</div>
So TestCtrl1 would be your parent controller and any variables declared
within that controller can be accessed by the child controller TestCtrl2.
On Tuesday, December 29, 2015 at 11:44:05 AM UTC+2, Ankush Joshi wrote:
>
> Hello all,
>
> I m facing issue, i just need example to refer data from one controller to
> other controller !!
>
> Suppose, I have one controller with name TestCtrl1 , which sets some
> variable values. These variables are need to accessed by Other controller
> TestCtrl2
>
> Thanks in advance
>
> Regards,
>
> Ankush
>
--
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.