1import {Custom} from '../path/to/anyfile.ts'
2.....
3export class FormComponent implements OnInit {
4 name: string;
5 empoloyeeID : number;
6 empList: Array<Custom> = [];
7 constructor() {
8
9 }
10
11 ngOnInit() {
12 }
13 onEmpCreate(){
14 //console.log(this.name,this.empoloyeeID);
15 let customObj = new Custom();
16 customObj.name = "something";
17 customObj.employeeId = 12;
18 this.empList.push(customObj);
19 this.name ="";
20 this.empoloyeeID = 0;
21 }
22}