Zeta Global Interview Question

How to convert angular js to angular2+