각도 JS으로 패주 있지만 HTTP 상태 404 오류나는 다음과 같은 코드로 패주 할 필요가 각도 JS에 초보자이야
웹 콘솔 공연이 메시지를 가져 오는 방법을
로컬 호스트 : 8080/testasd/때문에 addStudent 자원을로드하지 못했습니다 : 서버 (404)의 상태로 응답
var mainApp = angular.module("mainApp", ['ngRoute']);
mainApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/addStudent', {
templateUrl: 'AddStudent.html',
controller: 'AddStudentController'
}).
when('/viewStudents', {
templateUrl: 'ViewStudents.html',
controller: 'ViewStudentsController'
}).
otherwise({
redirectTo: '/addStudent'
});
}]);
mainApp.controller('AddStudentController', function($scope) {
$scope.message = "This page will be used to display add student form";
});
mainApp.controller('ViewStudentsController', function($scope) {
$scope.message = "This page will be used to display all the students";
});
당신이 그것을 로컬 호스트로 이동 하시겠습니까 파일이 웹 루트에
web.config
라는 만들 : 8080/testasd/addStudent 또는 localhost : 8080/addStudent? –