code: function remove(form, ev) {
        var confirm = $mdDialog.confirm()
          .title('Delete clientModelDoc ' + vm.displayName + '?')
          .content('Do you really want to delete clientModelDoc ' + vm.displayName + '?')
          .ariaLabel('Delete clientModelDoc')
          .ok('Delete clientModelDoc')
          .cancel('Cancel')
          .targetEvent(ev);
  
        $mdDialog.show(confirm)
          .then(performRemove);
  
        /**
         * Removes a clientModelDoc by using the ClientModelDocService remove method
         * @api private
         */
        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);
            }
          }
        }
      }
docs: Show a dialog to ask the clientModelDoc if she wants to delete the current selected clientModelDoc.
  @param {AngularForm} form - The form to pass to the remove handler
  @param {$event} ev - The event to pass to the dialog service