'use strict';

indexApp.controller('ProtocolListController',
    function ProtocolListController($scope, indexData, $location){
        $scope.protocolList = indexData.getProtocolList();

        $scope.deleteProtocol = function(protocol){
            indexData.deleteProtocol(protocol);
            $location.path('/');
        }
    }
);

'use strict';

indexApp.controller('ProtocolListController',
    function ProtocolListController($scope, indexData, $location){
        $scope.protocolList = indexData.getProtocolList();

        $scope.deleteProtocol = function(protocol){
            indexData.deleteProtocol(protocol);
            $scope.protocolList = indexData.getProtocolList();
            $location.path('/');
        }
    }
);

Refresh protocol list after protocol removal
Refresh protocol list after protocol removal
