I am currently working AmgularJS project, I am successfully sign-in in Homeview when I host project over Amazon server whereas it din't works in localhost.
App.js is something like this :
//Define an angular module for our app
var app = angular.module('blickbeeLite', [ 'ngRoute']);
app.controller('MainController', function($scope, $http)
{
});
app.config(['$provide', '$routeProvider', function ($provide, $routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/login.html',
})
.when('/:templateFile', {
templateUrl: function (param) { return 'views/'+param.templateFile+'.html' }
})
.otherwise({
redirectTo: '/'
});
}]);
and error is :
Cannot POST /index.html