54472: Working post request with form-data (contains test code)

This commit is contained in:
Kristof De Langhe
2018-09-11 16:23:57 +02:00
parent ad9852f194
commit 758127e409
7 changed files with 50 additions and 16 deletions

View File

@@ -14,6 +14,7 @@ import { map } from 'rxjs/operators';
import { RemoteData } from '../../core/data/remote-data';
import { isNotEmpty } from '../../shared/empty.util';
import { DSpaceObject } from '../../core/shared/dspace-object.model';
import { HttpEvent } from '@angular/common/http';
@Component({
selector: 'ds-create-collection',
@@ -55,6 +56,9 @@ export class CreateCollectionPageComponent {
this.router.navigateByUrl('');
}
});
// this.collectionDataService.createSimple(collection).subscribe((httpEvent: HttpEvent<{}>) => {
// console.log(httpEvent);
// });
});
}