I'm trying to build a shell manually trying to figure out how it works
Structure:
- application(php stuff) - webroot -- app --- app.js -- templates --- main ---- login ----- login.html index.html (with angularjs libs) 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:
<div>LOGIN test template</div> "/other" doesn't exit. Besides I tried different pathes as: templateUrl: "templates/main/login/login.html" templateUrl: "webroot/templates/main/login/login.html"
By the way the url comes with an "#" (eg. nameDomain.com/#/login, but it should be nameDomain.com/#login) but angularjs seems allow only /nameUrlTemplate