24 lines
672 B
24 lines
672 B
3 years ago
|
import { Component, OnInit, Input } from '@angular/core';
|
||
|
import { NzModalRef } from 'ng-zorro-antd/modal';
|
||
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||
|
import { HttpClient } from '@angular/common/http';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-edithost',
|
||
|
templateUrl: './edithost.component.html',
|
||
|
styleUrls: ['./edithost.component.scss']
|
||
|
})
|
||
|
export class EdithostComponent implements OnInit {
|
||
|
|
||
|
@Input() ip: any
|
||
|
|
||
|
validateForm!: FormGroup;
|
||
|
constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient) { }
|
||
|
|
||
|
ngOnInit(): void {
|
||
|
this.validateForm = this.fb.group({
|
||
|
ip: [null, [Validators.required]]
|
||
|
});
|
||
|
}
|
||
|
}
|