aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-creation.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-creation.component.ts')
-rw-r--r--cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-creation.component.ts19
1 files changed, 16 insertions, 3 deletions
diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-creation.component.ts b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-creation.component.ts
index 08612d3ee..32dc3807d 100644
--- a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-creation.component.ts
+++ b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-creation.component.ts
@@ -19,6 +19,8 @@
*/
import { Component, OnInit } from '@angular/core';
+import { Observable } from 'rxjs';
+import { Store } from '@ngrx/store';
@Component({
selector: 'app-resource-creation',
@@ -27,9 +29,20 @@ import { Component, OnInit } from '@angular/core';
})
export class ResourceCreationComponent implements OnInit {
- constructor() { }
+ myFile: File; /* property of File type */
- ngOnInit() {
+ constructor() {
+ }
+
+ ngOnInit() {
+ }
+
+ fileChange(files: any) {
+ console.log(files);
+ this.myFile = files[0].nativeElement;
+ }
+
+ upload(){
+
}
-
}