Can you guys explain how the flow works when url get hit? and why angular template url not working?
The question is when the url clicked on the browser, it might go to the cache for URL saved from $stateprovider.state and then might go to find the file as I defined like below, and then where does it go ? if they need to they might go to asp.net core controller to fetch data. Am I understanding right?
The problem I am having is .. TemplateUrl is not pointing to the folder in the file . I tested it with another file in a different folder but it works fine other than this file.
$stateProvider.state("users.index", {
url: "/",
templateUrl: "/users/index",
//template:'<p>test</p>',
controller: "userController",
resolve: {
viewModel: ["userService", function (userService) {
return userService.getAllUsers();
}]
}
});
<base>tag is set properly. Are you using HTML5 mode?