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

Changing multiple templates #346

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

Changing multiple templates #346

mick1313 opened this issue Jun 2, 2016 · 1 comment

Comments

@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
Copy link
Owner

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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants