generators/app/templates/client/app/clientModelDoc(demo)/list/edit/edit.controller.js
function performRemove() {
        ClientModelDocService.remove(vm.clientModelDoc)
          .then(deleteClientModelDocSuccess)
          .catch(deleteClientModelDocCatch);

        function deleteClientModelDocSuccess() {
          Toast.show({type: 'success', text: 'ClientModelDoc ' + vm.displayName + ' deleted'});
          vm.showList();
        }

        function deleteClientModelDocCatch(err) {
          Toast.show({
            type: 'warn',
            text: 'Error while deleting clientModelDoc ' + vm.displayName,
            link: {state: $state.$current, params: $stateParams}
          });

          if (form && err) {
            form.setResponseErrors(err, vm.errors);
          }
        }
      }
function performRemove() {
        ClientModelDocService.remove(vm.clientModelDoc)
          .then(deleteClientModelDocSuccess)
          .catch(deleteClientModelDocCatch);

        function deleteClientModelDocSuccess() {
          Toast.show({type: 'success', text: 'ClientModelDoc ' + vm.displayName + ' deleted'});
          vm.showList();
        }

        function deleteClientModelDocCatch(err) {
          Toast.show({
            type: 'warn',
            text: 'Error while deleting clientModelDoc ' + vm.displayName,
            link: {state: $state.$current, params: $stateParams}
          });

          if (form && err) {
            form.setResponseErrors(err, vm.errors);
          }
        }
      }
function performRemove ( ) { ClientModelDocService . remove ( vm . clientModelDoc ) . then ( deleteClientModelDocSuccess ) . catch ( deleteClientModelDocCatch ) ; function deleteClientModelDocSuccess ( ) { Toast . show ( { type : 'success' , text : 'ClientModelDoc ' + vm . displayName + ' deleted' } ) ; vm . showList ( ) ; } function deleteClientModelDocCatch ( err ) { Toast . show ( { type : 'warn' , text : 'Error while deleting clientModelDoc ' + vm . displayName , link : { state : $state . $current , params : $stateParams } } ) ; if ( form && err ) { form . setResponseErrors ( err , vm . errors ) ; } } }
Removes a clientModelDoc by using the ClientModelDocService remove method
@api private
Removes a clientModelDoc by using the ClientModelDocService remove method