BF: tab completion did not work with commands. $scope.input contained only the typed chars not the result of the completion. Needed to fire an event so that ng update the input model