From 7375775ff3ee600fc1f8633dd21ec35f86c050b7 Mon Sep 17 00:00:00 2001 From: Swapnali Shadanan Pode Date: Wed, 6 Feb 2019 15:49:57 +0530 Subject: Resource creation template for CBA wizard Change-Id: Ica72c5950f17f7e0ed6f886eeea2fcdda6c309c1 Issue-ID: CCSDK-804 Signed-off-by: sp00501638 --- .../resource-creation/resource-creation.component.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-creation.component.ts') 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(){ + } - } -- cgit 1.2.3-korg