diff options
author | Swapnali Shadanan Pode <sp00501638@techmahindra.com> | 2019-02-19 18:52:43 +0530 |
---|---|---|
committer | Swapnali Shadanan Pode <sp00501638@techmahindra.com> | 2019-02-19 18:52:43 +0530 |
commit | 8e1e7f67cb32bc64db45119754eddbfa487d43fd (patch) | |
tree | 27e2b0e3550b5b462b9bd6a28f40edad616c673d /cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.ts | |
parent | 933e47233a168840a64e3ac97711a35d0e5731fb (diff) |
Adding changes in existing model
Adding search model to existing template
Change-Id: I1c9f7b6e444fef585bea621e5017a0f78376885f
Issue-ID: CCSDK-804
Signed-off-by: sp00501638 <sp00501638@techmahindra.com>
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.ts')
-rw-r--r-- | cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/existing-model/search-resource/search-resource.component.ts | 18 |
1 files changed, 13 insertions, 5 deletions
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 8759adf82..16129b74a 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 @@ -19,17 +19,25 @@ */ import { Component, OnInit } from '@angular/core'; - +import {FormBuilder, FormGroup, Validators} from '@angular/forms'; @Component({ selector: 'app-search-resource', templateUrl: './search-resource.component.html', styleUrls: ['./search-resource.component.scss'] }) -export class SearchResourceComponent implements OnInit { +export class SearchResourceComponent implements OnInit { - constructor() { } + myControl: FormGroup; - ngOnInit() { + constructor(private _formBuilder: FormBuilder) { } + + options: string[] = ['One','One1', 'Two', 'Three']; + + ngOnInit() { + this.myControl = this._formBuilder.group({ + search_input: ['', Validators.required] + }); } - + } + |