# Template repeater initial state

**URL:** <https://forum.inductiveautomation.com/t/template-repeater-initial-state/16664>\
**Category:** Ignition\
**Created:** [January 21, 2018, 2:28pm UTC](https://forum.inductiveautomation.com/t/template-repeater-initial-state/16664 "2018-01-21T14:28:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [January 21, 2018, 2:28pm UTC](https://forum.inductiveautomation.com/t/template-repeater-initial-state/16664/1 "2018-01-21T14:28:40Z")

</div>

Trying to set what templates that’s enabled when a window is opened. Using custom properties and the property changed event and it all seems to work fine WHEN the window has been opened, just not the first time. After a little debugging I figured that `.getLoadedTemplates()` returns 0, even when filtering on the `componentRunning` property which seems to be the last property that change on the repeater when the window opens.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [January 21, 2018, 10:04pm UTC](https://forum.inductiveautomation.com/t/template-repeater-initial-state/16664/2 "2018-01-21T22:04:36Z")

</div>

Figured it out, modifying the `templateParams` property on the repeater works as intended.
