I have templated my Angular app with Yeoman, so my app directory structure is nice and neat and will give you an idea of how my project is constructed. I have 2 routes in my app, one is called 'main' and the other 'sub'.
When I'm in my 'main' view, I have a link that then forwards the user to the 'sub' view. How can I pass a simple value to the 'sub' controller through the link from my 'main' view?
i.e. my link is just a standard html link:
<a href="/#/sub">Go to sub</a>
When you hit that the sub.js controller can add some data to $scope for the sub view and so on. I want to access the value in the 'sub' controller that was passed from the 'main' view... Hope that makes sense..