Saving time and bandwidth by reviewing/refactoring old code

Prelude I build multiple minor web apps at work. They might be forms for data collection, or registries with basic CRUD (Create, Read, Update, Delete) capabilities. These are written in HTML/JS/CSS and hosted on SharePoint – utilizing the SharePoint REST API to handle storage and permissions. When data is stored in a SharePoint list, I […]

Add routing to an Angular CLI project

After creating the project with Angular CLI, complete the following steps to add routing to the project. Ensure that index.html contains <base href=”/”> in the <head> section Navigate to the projects root folder in a terminal Generate a module for routing by running ng generate module app-routing Replace the content of the file app-routing/app-routing.module.ts with […]