From cb7dc494f7115624777c49d9afceb438059f0ad7 Mon Sep 17 00:00:00 2001 From: snoop Date: Tue, 6 Feb 2018 19:02:43 +0900 Subject: [PATCH] added radio --- .../sensor/component/setting/setting.component.html | 7 ++++++- .../sensor/component/setting/setting.component.scss | 13 +++++++++++++ .../sensor/component/setting/setting.component.ts | 9 +++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/app/packages/sensor/component/setting/setting.component.html b/src/app/packages/sensor/component/setting/setting.component.html index 75d42d1..aa423c1 100644 --- a/src/app/packages/sensor/component/setting/setting.component.html +++ b/src/app/packages/sensor/component/setting/setting.component.html @@ -17,7 +17,12 @@ Select Crawler - 여기에 Crawler 출력 + + + {{season}} + + +
Your favorite season is: {{favoriteSeason}}
diff --git a/src/app/packages/sensor/component/setting/setting.component.scss b/src/app/packages/sensor/component/setting/setting.component.scss index 3c506eb..087507b 100644 --- a/src/app/packages/sensor/component/setting/setting.component.scss +++ b/src/app/packages/sensor/component/setting/setting.component.scss @@ -6,3 +6,16 @@ background-image: url('https://material.angular.io/assets/img/examples/shiba1.jpg'); background-size: cover; } + +.example-radio-group { + display: inline-flex; + flex-direction: column; +} + +.example-radio-button { + margin: 5px; +} + +.example-selected-value { + margin: 15px 0; +} \ No newline at end of file diff --git a/src/app/packages/sensor/component/setting/setting.component.ts b/src/app/packages/sensor/component/setting/setting.component.ts index 24a375a..f54213d 100644 --- a/src/app/packages/sensor/component/setting/setting.component.ts +++ b/src/app/packages/sensor/component/setting/setting.component.ts @@ -9,6 +9,15 @@ export class SettingComponent implements OnInit { constructor() { } + favoriteSeason: string; + + seasons = [ + 'Winter', + 'Spring', + 'Summer', + 'Autumn', + ]; + ngOnInit() { }