Angular 17 Tips and Trick

Angular 17 Tips and Trick

A list of tips and tricks in Angular that can help your next project.

ANGULAR ROUTING12 Jan 2024

Angular routing not working?

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 More
ANGULAR LINKS12 Jan 2024

Custom Links

If your links are there but not working make sure RouterModule is included in your component.ts file and import it.

Learn More
MODULES ANGULAR 1712 Jan 2024

Create module.js Angular 17

I 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