Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Commit

Permalink
fix(monthView): bind once to the ng-include template value so it does…
Browse files Browse the repository at this point in the history
…n't change after render

Closes #346
  • Loading branch information
Matt Lewis committed Jun 4, 2016
1 parent da101ab commit 48f3869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/calendarMonthCell.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<i class="fa fa-chevron-up"></i>
</div>

<ng-include src="vm.calendarConfig.templates.calendarMonthCellEvents"></ng-include>
<ng-include src=":: vm.calendarConfig.templates.calendarMonthCellEvents"></ng-include>

<div id="cal-week-box" ng-if="$first && rowHovered">
<span ng-bind="vm.calendarConfig.i18nStrings.weekNumber.replace('{week}', day.date.clone().add(1, 'day').isoWeek())"></span>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/calendarMonthView.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class="cal-cell1 cal-cell {{ day.highlightClass }}"
ng-click="vm.dayClicked(day, false, $event)"
ng-class="{pointer: day.events.length > 0}">
<ng-include src="vm.calendarConfig.templates.calendarMonthCell"></ng-include>
<ng-include src=":: vm.calendarConfig.templates.calendarMonthCell"></ng-include>
</div>
</div>

Expand Down

0 comments on commit 48f3869

Please sign in to comment.