where is the app.module.ts in the latest version of angular?

i need to import HtmlClient and router, thank you.

1 points · 2 comments · view on lemmy.world

2 Comments

Link@programming.dev · 2 pts · 2y
[ removed ]
Kwa@derpzilla.net · 2 pts · 2y (1 reply)

I haven’t run ng new for a while, but if it’s missing AppModule, it may be because they bootstrapped the app using standalone application. Check this part of the documentation that shows you how to provide dependencies in a standalone application: https://angular.io/guide/standalone-components#configuring-dependency-injection

MrOzwaldMan@lemmy.ml · 1 pts · 2y

Thanks