A list of tips and tricks in Angular that can help your next project.
This must be some kind of glitch or something but I have run into this issue a few times. Before you spend too much time on trying to figure out why your routing doesnt work, try moving your links to the top of the list in your app.routes.ts file, right under the import Routes from @angular/router line.
Learn MoreIf your links are there but not working make sure RouterModule is included in your component.ts file and import it.
Learn MoreI recently realized starting a new project that the .module.ts was not being created in Angular 17, here is the resolution. Starting with version 17 of Angular, we now have the Standalone configuration as the default in projects. So when you create a new project, you won’t have any modules in it if you don’t specify anything. So to create an application based on modules, just use the command: ng new projectname --no-standalone
Learn More