class CategoriesComponent { x() { subscribe(data => { if (data) console.log(1) }) } private checkCompanyRole() { return this } }