back to notes

get all routes (including lazy loads) from Angular project

for r in $(find src -name "routing.module.ts"); do echo $r; grep "path:\|component:\|loadChildren:" $r; done > allroutes.txt


last updated november 2022