Thanks, Sander! 

When I have the code like below, the URL in the browser goes from 
*file:///Users/Steve/Documents/AndroidApps/Foundation/foundation5/www/index.html#/
 
*to *file:///gallery_details*. and the web page can't be found. 

var app = angular.module("app", ['ngRoute']);

app.config(['$routeProvider', '$locationProvider', function($routeProvider, 
$locationProvider) {
    $routeProvider
        .when('/gallery_details', {
            templateUrl: 'views/gallery_details.html'
        }) 
        .otherwise({
            redirectTo: '/'
        });
        // enable html5Mode for pushstate ('#'-less URLs)
       // $locationProvider.html5Mode(true);
}]);

I'm using: <a href="/gallery_details">More</a><br>
If I add a hash: <a href="#/gallery_details">More</a><br> then the URL in 
the browser goes to: ... index.html#/gallery_details and the page does not 
change to the new page, but stays the same. 

Still struggling with this after over a week. 

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