Thx! 
So I ended up using the following to get it to work:

My index.html includes:
<li><a href="/#/games">Games</a></li>

and my config() function includes:
.when('/games', {
     controller: 'Games',
     templateUrl: 'controllers/games.html' 
})

It works but as you can see I need to use a # in my href since it simply 
appears in the url on its own.
I saw a suggestion to add the following:
app.config(['$locationProvider', function($locationProvider){
  $locationProvider.html5Mode(true).hashPrefix('!');
}]);

I did but as a separate config() function. And it doesn't work. Should I 
include this into my main config()?
app.config(function($routeProvider){
$routeProvider
.when('/', {
controller: 'Posts',
templateUrl: 'controllers/posts.html'
})
.when('/games', {
    controller: 'Games',
templateUrl: 'controllers/games.html' 
})
});

If so, how?



-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to