angular is not a function typescript