Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngModelOptions): allow sharing options between multiple inputs #10673

Closed
wants to merge 1 commit into from
Closed

fix(ngModelOptions): allow sharing options between multiple inputs #10673

wants to merge 1 commit into from

Conversation

shahata
Copy link
Contributor

@shahata shahata commented Jan 7, 2015

Closes #10667

@lgalfaso
Copy link
Contributor

lgalfaso commented Jan 8, 2015

landed as 9c9c6b3

@lgalfaso lgalfaso closed this Jan 8, 2015
@@ -1215,7 +1215,7 @@ var ngModelOptionsDirective = function() {
restrict: 'A',
controller: ['$scope', '$attrs', function($scope, $attrs) {
var that = this;
this.$options = $scope.$eval($attrs.ngModelOptions);
this.$options = angular.copy($scope.$eval($attrs.ngModelOptions));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really minor, and a bit late, but this should just be copy...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, should be able to make the change in about an hour (unless
someone beats me)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done and thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks & sorry. I always keep forgetting not to use angular.* :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants