javascript - Cannot POST /index.html in AngularJS error in localhost whereas works fine on server -
i working amgularjs project, sign-in in homeview when host project on amazon server whereas din't works in localhost.
app.js :
//define angular module 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 :
cannot post /index.html
have included 'angular-route.js' in html?? similar question
Comments
Post a Comment