I'm currently in the process of manually constructing a shell and trying to understand its functionality
Shell Structure:
- application (contains PHP files)
- webroot
-- app
--- app.js
-- templates
--- main
---- login
----- login.html
index.html (includes AngularJS libraries)
app.js:
function config($routeProvider){
$routeProvider
.when("/login",{
templateUrl: "../templates/main/login/login.html"
})
.otherwise({ redirectTo:"/other" });
}
angular
.module("app", ["ngRoute", "ngResource"])
.config(config);
Login Template:
<div>LOGIN test template</div>
The path "/other" does not exist. I have also tried different paths such as: templateUrl: "templates/main/login/login.html" templateUrl: "webroot/templates/main/login/login.html"
Additionally, the URL includes a "#" (e.g. nameDomain.com/#/login), but it should be nameDomain.com/#login according to AngularJS requirements, which only allow /nameUrlTemplate