Fixed the typos

$scope.apply -- > $scope.$apply