Having issues with home search widget code
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 02:22 PM
I've been following the articles as written on how to fix this code issue for my widget but there's noting previewing in the section to show. is there something wrong with the code?
this for HTML
<h1 class="text-center text-4x m-b-lg sp-tagline-color" ng-bind="data.greeting"></h1>
and for
client script:
function() {
/* widget controller */
var c = this;
c.data.greeting = 'Hi ' + g_userID.user.first_name;
}
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 02:30 PM
Hi @DevtoSME ,
Try this :
function($scope) {
var c = this;
c.welcome = ''HI" + $scope.user.first_name + "!";
}
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....