Hi Peter , Thanks for your response , i wanted to call this client function onload of widget in html , I was able to achieve that using the ng-init directive