var app = angular.module('plunker', []);
app
.provider('$rootProvider1', function() {
console.log('Provider 1');
this.$get = function() {};
})
.config(function() {
console.log('Config');
})
.provider('$rootProvider2', function() {
console.log('Provider 2');
this.$get = function() {};
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css" />
<script data-require="angular.js@1.3.x" src="https://code.angularjs.org/1.3.16/angular.js" data-semver="1.3.16"></script>
<script src="app.js"></script>
</head>
</html>
/* Put your css in here */