this.get_rights(); ---------------------------------------------------------------------------- isuser = 'No'; ischecker = 'No'; isapprover = 'No'; qms_approver = 'No'; dept_head = 'No'; isauditor = 'No'; rights; get_rights() { this.service .get( 'hr/employee.php?type=getrights&emp_id=' + localStorage.getItem('emp_id') + '&dep_name=' + localStorage.getItem('department') ) .subscribe((response) => { this.rights = response; this.righ=this.rights[0].isuser this.isuser=this.rights[0].isuser this.ischecker=this.rights[0].ischecker this.isapprover=this.rights[0].isapprover this.qms_approver=this.rights[0].qms_approver this.dept_head=this.rights[0].dept_head this.isauditor=this.rights[0].isauditor }); }