This repository was archived by the owner on Aug 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 130130 * Number of years from scope.month to show in future in select
131131 * note : will change year into a select
132132 */
133- changeYearFuture : '=?'
133+ changeYearFuture : '=?' ,
134+
135+ /*
136+ * Type: function
137+ * The moment object with functions. Optional if you dont want it on the global scope
138+ */
139+ moment : '=?' ,
134140 } ,
135141 template : '<div class="multiple-date-picker">' +
136142 '<div class="picker-top-row">' +
150156 '</div>' +
151157 '</div>' ,
152158 link : function ( scope ) {
153-
159+ var moment = moment || scope . moment ;
154160 scope . ngModel = scope . ngModel || [ ] ;
155161
156162 /*utility functions*/
Original file line number Diff line number Diff line change 130130 * Number of years from scope.month to show in future in select
131131 * note : will change year into a select
132132 */
133- changeYearFuture : '=?'
133+ changeYearFuture : '=?' ,
134+
135+ /*
136+ * Type: function
137+ * The moment object with functions. Optional if you dont want it on the global scope
138+ */
139+ moment : '=?' ,
134140 } ,
135141 template : '<div class="multiple-date-picker">' +
136142 '<div class="picker-top-row">' +
150156 '</div>' +
151157 '</div>' ,
152158 link : function ( scope ) {
153-
159+ var moment = moment || scope . moment ;
154160 scope . ngModel = scope . ngModel || [ ] ;
155161
156162 /*utility functions*/
You can’t perform that action at this time.
0 commit comments