Service Portal : Passing client controller variable to ng-template

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2023 06:40 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2023 02:26 AM
Hi @AnirudhKumar , Try{{::c.day}}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 02:04 AM
any solution to this?