/** * Created by PPMaj on 3/3/2017. */ class RecruitmentConfig { constructor() { this.init() } init() { this.recruitmentConfig = {}; } addEmail() { this.recruitmentConfig.object.email.push({ id : this.recruitmentConfig.object.email.length + 1, name : 'New E-mail', content : { tha : 'ว่าง', eng : 'Empty' } }) } removeEmail(index) { this.recruitmentConfig.object.email.splice(index, 1) } }