app.controller("abateController", ['$scope', '$http', 'cadastroFactory', 'notificationFactory',
    function ($scope, $http, cadastroFactory, notificationFactory) {


        $scope.abateitems = [];
        $scope.carregarAbates = function () {
            var getSuccessCallback = function (data, status) {


                $scope.abateitems = data;

            };

            var errorCallback = function (data, status, headers, config) {
                //notificationFactory.error("Sem Dados");
            };

            cadastroFactory.getAbates().success(getSuccessCallback).error(errorCallback);
        };

    }]);