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

angular unknown provider , cannot post /signup


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -