I wondered too. But shortenUrl is called from within the ng-click directive, so we're under Angular control and there's no need for $apply. Does it make sense?