Skip to content
This repository has been archived by the owner. It is now read-only.

Changing multiple templates #346

Closed
mick1313 opened this Issue Jun 2, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@mick1313
Copy link

mick1313 commented Jun 2, 2016

I am using a calendar in more than one spot within a work flow. Each view needs a different template, to be when my first controller opens, it sets the template for the monthCell. That controller, then opens a MODAL, with another calendar in it, that needs to be templated differently.

I have the config being set in the 2nd controller, but it seems to have no effect. It reverts to the default view. If I remove any configuration change in the second controller, it reverts to the first template I set. Is there a way to change or reset the calendar when then modal opens with a different template?

@mattlewis92

This comment has been minimized.

Copy link
Owner

mattlewis92 commented Jun 2, 2016

It might be possible to get this behaviour by using one time binding on the ng-include of the template. Can you try overriding the month view template and changing this line to:

<ng-include src=":: vm.calendarConfig.templates.calendarMonthCell"></ng-include>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.