Georgi Naumov
Georgi Naumov

Reputation: 4211

Amalgamation of several app.config method in AngularJS

I am new to AngularJS. Perhaps the question is ridiculous, but I just do not know how to do it. I have two config methods.

App.config(function($httpProvider) {
    // do something with $httpProvider
});

and

App.config(function($compileProvider) {
    // do something with $compileProvider
});

How do I use both providers into one .config method?

Best regards.

Upvotes: 0

Views: 43

Answers (1)

Alex Plugaru
Alex Plugaru

Reputation: 2249

Try this:

App.config(function($httpProvider, $compileProvider) {
    // do something with $httpProvider and $compileProvider)
});

Upvotes: 2

Related Questions