Can I assign an ID dynamically? wj-flex-chart #chart8

Posted by: kimleeju on 22 January 2019, 2:54 pm EST

  • Posted 22 January 2019, 2:54 pm EST

    Hello. First of all, thank you for your hard work.

    I’d like to assign an ID by drawing the chart over and over again.

    exam) #chart1, #chart2, #chart3, #chart4

    But this grammar doesn’t work. ==> #chart{{i}}

    How can I dynamically assign identity variables?

    {{product[i]}}

    					<wj-flex-chart-series [name]="'Pass'" [binding]="'pass'">
    						<wj-flex-chart-axis [wjProperty]="'axisY'" [position]="'Right'" [title]="''" [min]="0" [max]="inputMax[i] + inputMax[i]"></wj-flex-chart-axis>
    					</wj-flex-chart-series>
    					
    					<wj-flex-chart-series [name]="'main'" [chartType]="'LineSymbols'" [binding]="'main'"></wj-flex-chart-series>
    					<wj-flex-chart-legend position="Bottom"></wj-flex-chart-legend>
    				</wj-flex-chart>
    			</div>
    		</div>
    	</sa-widget>
    </article>
    
  • Posted 23 January 2019, 1:22 am EST

    Hi,

    Sorry, but we can’t create dynamic template reference variables. Angular doesn’t allow that.

    Could you please let us know some more about your use case so that we may suggest you the best possible alternative?

    ~Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels