From 67ef9b7f4cb9b59e1da4c93bce86d57bb9276d37 Mon Sep 17 00:00:00 2001 From: Swapnali Shadanan Pode Date: Fri, 29 Mar 2019 16:36:00 +0530 Subject: search resources changes Change-Id: I6b1cdb28377405038b6d8815192d7e78c7a68af6 Issue-ID: CCSDK-804 Signed-off-by: sp00501638 --- .../search-resource/search-resource.component.html | 2 +- .../search-resource/search-resource.component.ts | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'cds-ui') diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.html b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.html index ab696286b..236196b9b 100644 --- a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.html +++ b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.html @@ -23,7 +23,7 @@ - + {{option}} diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.ts b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.ts index 16129b74a..7f2745e63 100644 --- a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.ts +++ b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.ts @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -import { Component, OnInit } from '@angular/core'; +import { Component, OnInit, ViewChild, EventEmitter, Output } from '@angular/core'; import {FormBuilder, FormGroup, Validators} from '@angular/forms'; @Component({ selector: 'app-search-resource', @@ -27,17 +27,18 @@ import {FormBuilder, FormGroup, Validators} from '@angular/forms'; }) export class SearchResourceComponent implements OnInit { - myControl: FormGroup; - + myControl: FormGroup; + @Output() resourcesData = new EventEmitter(); + options: string[] = ['One','One1', 'Two', 'Three']; constructor(private _formBuilder: FormBuilder) { } - options: string[] = ['One','One1', 'Two', 'Three']; - - ngOnInit() { + ngOnInit() { this.myControl = this._formBuilder.group({ search_input: ['', Validators.required] }); } - + selected(value){ + this.resourcesData.emit(value); + } } -- cgit 1.2.3-korg