I'm using VS Community Edition, AngularJS 1.6 and Google Chrome as my browser.
In Chapter 12 the re-routing using Angular with a hash sign isn't working. There are no errors it just doesn't produce the details view on clicking the a-link.
HTML Code:
<td>{{movie.Title}}</td>
<td>
<a href="#/details/{{movie.Id}}">Details</a>
</td>
Code:
<td>{{movie.Title}}</td>
<td>
<a href="#/details/{{movie.Id}}">Details</a>
</td>[/HTML]
$routeProvider
.when("/list",
{ templateUrl: "/client/views/list.html" })
.when("/details/:id",
{ templateUrl: "/client/views/details.html" })
.otherwise(
{ redirectTo: "/list" }
);
//$routeProvider.html5Mode(true);
As you can see, I attempted html5Mode and removing the hash-sign but the method isn't found.
(A side issue is that I also cannot use the $http.get() shorthand as this method isn't found either.)
Thank you.