-2
angular.js를 사용하고 있습니다.각 모듈이 작동하지 않습니다.
angular.module('polls', ['pollServices'])
.config(['$routeProvider', function ($routeProvider)
{
$routeProvider
.when('/polls', { templateUrl: 'partials/list.html', controller: PollListCtrl })
.when('/poll/:pollId', { templateUrl: 'partials/item.html', controller: PollItemCtrl })
.when('/new', { templateUrl: 'partials/new.html', controller: PollNewCtrl })
.otherwise({ redirectTo: '/polls' });
}]);
하지만 난이 코드를 실행하면,이 같은 오류를 제공합니다 : 일반적으로 index.html을,
angular.module('polls', ['pollServices']
^
ReferenceError: angular is not defined
angular.js 뒤에 사용자 정의 js 파일 추가 : –
구문을 알 수 있습니까? 내가 어떻게 추가 할 수 있습니까 :) – kawade
html 파일 게시 : –