0

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

Asharam Seervi
  • 77
  • 2
  • 15

1 Answers1

0

Have you included 'angular-route.js' in your html?? Similar question

Angular unknown provider and Cannot POST /signup

Community
  • 1
  • 1
khushboo29
  • 906
  • 6
  • 16