如何使角装饰缩小友好吗?友好

2023-09-13 03:13:25 作者:想摘下星星给你

如何我可以让这个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) {