3

I have the following code (to force hashbang in the urls) in my app.config which is creating issues in minification:

app.config(["$provide", function ($provide) {
    ..
    $provide.decorator('$sniffer', function ($delegate) {
        $delegate.history = false;
            return $delegate;
    });

}]);

I know it's got something to do with DI and I have defined "$provide" not sure what else needs to be done. Any help would be highly appreciated.

Vaibhav Mule
  • 5,016
  • 4
  • 35
  • 52
Arslan Akram
  • 1,266
  • 2
  • 10
  • 20

1 Answers1

4

Check with this

app.config(["$provide", function ($provide) {
    ..
    $provide.decorator('$sniffer', ['$delegate', function ($delegate) {
        $delegate.history = false;
            return $delegate;
    }]);

}]);
Vigneswaran Marimuthu
  • 2,452
  • 13
  • 16