如何我可以让这个code,我有微小友好吗?
MyModule.config(['$提供'功能($提供){ $ provide.decorator($ exceptionHandler的功能($代表,$喷油器){
我似乎无法做到这一点:
$ provide.decorator($ exceptionHandler的,$代表,$注射器功能($代表,$喷油器){
解决方案
您缺少 [
。该模式是你成功申请了相同的配置
:
$ provide.decorator($ exceptionHandler的,[$代表,$注射器 功能($代表,$喷油器){
How to can I make this code that I have minification friendly?
MyModule.config(['$provide',function($provide) {
$provide.decorator("$exceptionHandler", function($delegate,$injector) {
I can't seem to do this:
$provide.decorator("$exceptionHandler" , "$delegate","$injector", function($delegate,$injector) {
解决方案
You are missing the [
. The pattern is the same that you successfully applied for config
:
$provide.decorator("$exceptionHandler" , [ "$delegate","$injector",
function($delegate,$injector) {