I'm learning Angular right now and I'm practicing by writing a simple application that uses ngRoute based on this example.
<-- index.html -->
<html>
<head> ... </head>
<body>
<div ng-view></div>
</body>
</html>
The code from the example displays information about various "Javascript Projects". My question is, how would I create yet another view that displays information about this model?
Say, for example, that I wanted to create one more ngView further down the page that only displays the project names without their descriptions? (See the example)
It seems like I would have to distinguish them from each other somehow. Maybe like this?
<body>
<div ng-view="fullView"></div>
...
<div ng-view="projectNameView"></div>
</body>
But I don't see anything like that in the documentation, so I think that's probably incorrect. Then I thought maybe I am supposed to use a separate controller like this:
<body>
<div ng-controller="fullViewController">
<div ng-view></div>
</div>
...
<div ng-controller="projectNameViewController">
<div ng-view></div>
</div>
</body>
But then the ngViews still seem to be undistinguished from each other.
What is the right way to do this? Once I have an idea from the index.html side, I think I can work out the javascript/module side myself - I just need a little nudge in the right direction.