Added getName function on the scope of HelloCtrl