Runnable code (Plunker, JSBin) is worth more than thousand words ;-)
Hard to see what your actual problem is.

On Wednesday, December 30, 2015 at 4:03:43 AM UTC+1, Josh Restivo wrote:
>
> I have a menu that is created from a list of objects, each object 
> containing the various properties of an individual menu item. The menu is 
> created via Controller1.
>
> One of the object properties is 'foo' which contains a string. When a menu 
> item is selected, its href points it to a url that is associated with 
> Controller2. I need to set '$bar = foo' within Controller2.
>
> I've gone around in circles with this and I keep getting tripped up by the 
> fact that I'm not storing foo when generating the menu. If I could store it 
> somewhere, I don't know how I would pass it to Controller2. I think I need 
> a service here but, again, I don't see how to pass the appropriate foo to 
> Controller2 when a menu selection is made.
>
> Any help is greatly appreciated.
>
>

-- 
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.

Reply via email to