我正在尝试使用PhantomJS预渲染我的AngularJS网站.(使用来自http://www.yearofmoo.com/2012/11/angularjs-and-seo.html的 phantomjs-runner.js )我无法通过PhantomJS加载页面,因为下面的错误发生了.在IE/Chrome/Firefox中不会发生此错误.
我该如何解决此错误?
错误:
Error: [$injector:modulerr] Failed to instantiate module SpaceForAfrica due to:
Error: [$injector:modulerr] Failed to instantiate module dialogs due to:
Error: [$injector:modulerr] Failed to instantiate module ngSanitize due to:
Error: [$injector:nomod] Module 'ngSanitize' is not available! You either misspelled the module name or forgot to load it. If registering a
module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.2.1/$injector/nomod?p0=ngSanitize
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js:1507
at ensure (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js:1435)
at module (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js:1717)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js:3527
Run Code Online (Sandbox Code Playgroud)
模块配置
var SpaceForAfrica = …Run Code Online (Sandbox Code Playgroud)