+
+ Host
+
+
+
+
-
-
+
+
-
- Port
-
-
+
+
\ No newline at end of file
diff --git a/src/packages/discovery/component/setting/setting.component.ts b/src/packages/discovery/component/setting/setting.component.ts
index 5e0ec99..093aa94 100644
--- a/src/packages/discovery/component/setting/setting.component.ts
+++ b/src/packages/discovery/component/setting/setting.component.ts
@@ -1,15 +1,33 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, AfterContentInit } from '@angular/core';
+import { MatCheckboxChange } from '@angular/material';
+
@Component({
selector: 'of-setting',
templateUrl: './setting.component.html',
styleUrls: ['./setting.component.scss']
})
-export class SettingComponent implements OnInit {
+export class SettingComponent implements OnInit, AfterContentInit {
+ private cidr;
+
+ serviceItems = [
+ { name: 'MySQL' },
+ { name: 'Redis' },
+ { name: 'Tomcat' },
+ { name: 'Nginx' },
+ ];
constructor() { }
ngOnInit() {
}
+ ngAfterContentInit() {
+ this.cidr = '192.168.1.0/24';
+ }
+
+ handleStart() {
+ console.log('Start discovery');
+
+ }
}
diff --git a/src/packages/discovery/discovery.module.ts b/src/packages/discovery/discovery.module.ts
index 5f743ef..6d22a94 100644
--- a/src/packages/discovery/discovery.module.ts
+++ b/src/packages/discovery/discovery.module.ts
@@ -7,12 +7,14 @@ import { MaterialModule } from 'app/commons/ui/material/material.module';
import { MemberStoreModule } from './discovery-store.module';
import { SERVICES } from './service';
+import { FormsModule } from '@angular/forms';
@NgModule({
imports: [
CommonModule,
MaterialModule,
- MemberStoreModule
+ MemberStoreModule,
+ FormsModule
],
declarations: [
COMPONENTS