Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(compiler): use reference copy instead of deep copy for resolve an…
Browse files Browse the repository at this point in the history
…d locals

Fixes #3651. Fixes #3561
  • Loading branch information
ThomasBurleson committed Jul 14, 2015
1 parent 6f72bef commit a914501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/services/compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ function mdCompilerService($q, $http, $injector, $compile, $controller, $templat
var template = options.template || '';
var controller = options.controller;
var controllerAs = options.controllerAs;
var resolve = angular.copy(options.resolve || {});
var locals = angular.copy(options.locals || {});
var resolve = angular.extend({}, options.resolve || {});
var locals = angular.extend({}, options.locals || {});
var transformTemplate = options.transformTemplate || angular.identity;
var bindToController = options.bindToController;

Expand Down

0 comments on commit a914501

Please sign in to comment.