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

Commit e991b89

Browse files
author
Jeffrey Barrus
committed
feat(datepicker): remove unnecessary scope.ngModelOptions
1 parent 72c43c3 commit e991b89

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: src/datepicker/datepicker.js

-3
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,6 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi
611611
datepickerEl = angular.element(popupEl.children()[0]);
612612
datepickerEl.attr('template-url', datepickerTemplateUrl);
613613

614-
scope.ngModelOptions = { $options: angular.extend({ allowInvalid: false }, ngModelOptions) };
615-
datepickerEl.attr({'ng-model-options': 'ngModelOptions'});
616-
617614
if (isHtml5DateInput) {
618615
if (attrs.type === 'month') {
619616
datepickerEl.attr('datepicker-mode', '"month"');

0 commit comments

Comments
 (0)