Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Igtree templating.
posted

Hi, 

I am trying to attach a number to the node of the tree based on the condition. So i am using a template to do the condition checking 

private counttemplate: string = "{{if ${c} != \"0\" && ${c} != \"\"}}${title}<span style=\"font-weight:bold;color:#556B2F\">${c}</span>{{else}}${title}{{/if}}'";

seems like the igtree doesnt like this. but if i take of the condition checking and just do ${title}<span style=\"font-weight:bold;color:#556B2F\">${c}</span>

it works. 

Please let me know how to make the templating work with igtree with angular 2 framework.

Parents Reply Children
No Data