Before Angular v15 we had to create guards as a class which was a big boilerplate even though we had simple logic. Additionally, passing parameters to guard via data was not strict, so we were able to have a typo and the compiler did not throw an error. Everything changed when Angular v15 comes and provides functional router guards.
- Read more on: https://codegen.studio/blog/z4vexv
- Demo available on page: https://master--permission-manager-cdgstudio.netlify.app