adds name into angular scope.