Template Option Component 14/77714/1
authorezhil <ezhrajam@in.ibm.com>
Fri, 1 Feb 2019 11:44:58 +0000 (17:14 +0530)
committerezhil <ezhrajam@in.ibm.com>
Fri, 1 Feb 2019 11:45:14 +0000 (17:15 +0530)
Change-Id: I7262b53e1599e4c16a645da186a1d672987aab50
Issue-ID: CCSDK-703
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
cds-ui/client/src/app/feature-modules/blueprint/select-template/template-options/template-options.component.html
cds-ui/client/src/app/feature-modules/blueprint/select-template/template-options/template-options.component.ts

index 7f520ff..9c2d721 100644 (file)
@@ -18,7 +18,8 @@ See the License for the specific language governing permissions and
 limitations under the License.
 ============LICENSE_END============================================
 -->
-<p>
-  template-options works!
-</p>
-<button (click)="loadTemplateData()">Load Template Data</button>
\ No newline at end of file
+<mat-radio-group>
+  <mat-radio-button value="1" (click)="selected(1)">Upload Template file</mat-radio-button><br><br>
+  <mat-radio-button value="2" (click)="selected(2)">Starter Template</mat-radio-button><br><br>
+  <mat-radio-button value="3" (click)="selected(3)">Existing Model File</mat-radio-button>
+</mat-radio-group>
index b9a7fa3..3b598b2 100644 (file)
@@ -19,7 +19,7 @@ limitations under the License.
 ============LICENSE_END============================================
 */
 
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, Output, EventEmitter} from '@angular/core';
 import { HttpClient } from '@angular/common/http';
 @Component({
   selector: 'app-template-options',
@@ -27,13 +27,19 @@ import { HttpClient } from '@angular/common/http';
   styleUrls: ['./template-options.component.scss']
 })
 export class TemplateOptionsComponent implements OnInit {
+  selectedOption: string;
+  @Output() option = new EventEmitter();
 
   constructor() { }
 
   ngOnInit() {
   }
 
-  loadTemplateData() {
-   // to do
+  selected(value){
+    console.log(value);
+    this.option.emit(value);
   }
+  // loadTemplateData() {
+  //  // to do
+  // }
 }