Code - https://github.com/suyashjawale/Angular16
I have generated my Angular 16 project using following command and selected routing to yes.
ng new myapp --standalone
And then I generated other components using
ng g c components/home
Since, i used --standalone
the boilerplate files are different. (Eg. New file app.routes.ts)
Now I want to implement routing So I added the following code to app.routes.ts.
But the routing doesn't happen. Idk why?. I have restarted the app. still it doesn't work. So i implemeted loadComponent. But still it doesn't work. Code below.
Am i doing anything wrong. It works with angular 15. But it has app.routing.module.ts. I have restarted the app but still it doesn't work.
FYI - component is standalone