Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
feat(datepicker): remove unnecessary scope.ngModelOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Barrus committed Dec 9, 2015
1 parent 72c43c3 commit e991b89
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,6 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi
datepickerEl = angular.element(popupEl.children()[0]);
datepickerEl.attr('template-url', datepickerTemplateUrl);

scope.ngModelOptions = { $options: angular.extend({ allowInvalid: false }, ngModelOptions) };
datepickerEl.attr({'ng-model-options': 'ngModelOptions'});

if (isHtml5DateInput) {
if (attrs.type === 'month') {
datepickerEl.attr('datepicker-mode', '"month"');
Expand Down

0 comments on commit e991b89

Please sign in to comment.