I think you need to add a '/' to your .when route
index.html:
<a href="#/gallery_details">More</a><br>
galleryApp.js:
.when('/gallery_details',{
templateUrl: 'views/gallery_details.html'
On Tuesday, January 20, 2015 at 12:23:12 PM UTC-6, Steve Husting wrote:
>
> If I change the index.html to
> <a href="#/gallery_details">More</a><br>
>
> ... and galleryApp.js to
> .when('gallery_details',{
> templateUrl: 'views/gallery_details.html'
>
> ... then clicking on the link leaves the page the same, but changes the
> link in the browser's URL box from www/index.html to
> www/index.html#/gallery_details
>
> Still not working.
>
--
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.