Service Portal : Passing client controller variable to ng-template

AnirudhKumar
Mega Sage
Mega Sage

I have an ng-template in my widget.

How do I access a variable in my client controller in my ng-template.

 

For example:
In my Client Controller, I have:

c.day = 'Friday';

 

I want to print the variable 'day' in div tag in my ng-template.

I tried {{day}} and {{c.day}} and few other trials and nothing works!

 

2 REPLIES 2

Sonu Parab
Mega Sage
Mega Sage

Hi @AnirudhKumar , Try{{::c.day}} 

 

oster
Tera Guru

any solution to this?