Angular to Typescript