Having issues with home search widget code

DevtoSME
Giga Guru

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

Sohail Khilji
Kilo Patron
Kilo Patron

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....

LinkedIn - Lets Connect