Let me start off by saying my apologies for the formatting. I'm posting from a mobile phone.
In my /public/js/app.js I have this
var app = angular.module("myApp", ["ngRoute"]);
app.config(function($routeProvider) {
$routeProvider
.when("/", {
templateUrl : "/public/views/index.html"
})
.when("/packages", {
templateUrl : "/public/views/packages.html"
})
.when("/contactus", {
templateUrl : "/public/views/contactus.html"
})
.when("/signup", {
templateUrl : "/public/views/signup.html"
})
. otherwise({
redirectTo: "/";
});
});
And in my /public/index.html
I have this below
<html ng-App="myApp">
// All the angular script files including app.js
<body>
<div ng-view></div>
All my HTML files are located at /public/views/
I get the "cannot GET '/contactus'"
Or any webpage for that matter that's not the index.
Any help?