$sce在哪个模块里啊
为什么在config路由的时候想注入它出错啊:Uncaught Error: [$injector:modulerr]
angular.module('marketing-module',['ngRoute','d3','ngSanitize'])
.config(['$routeProvider','$sce',function($routeProvider,$sce){
$routeProvider
.when('/',{
...
})
...;
}]);
Only things like constant provider can be injected into config, but service cannot be injected
Solved it myself. Services cannot be introduced here, only service providers