Skip to content

Instantly share code, notes, and snippets.

View Exlord's full-sized avatar

FarhadAdeli Exlord

View GitHub Profile
@Exlord
Exlord / BrowserProvider.js
Last active August 29, 2015 14:22
Fixing Duplicate $browser provider with multiple app bootstrap in Angular 1.3
var __browser = null;
(function (angular) {
var origMethod = angular.module;
angular.module = function (name, reqs, configFn) {
var module = origMethod(name, reqs, configFn);
///////////////////// override the browser service
module.config(['$provide', '$compileProvider', '$routeProvider', function ($provide, $compileProvider, $routeProvider) {