How to implement custom roles in Angular?

this is the design of UX:

Example:
layout1

layout2

My question is how to implement guards in this case, the role decide the access, any idea? I´m front end developer jr, if my code is needed, I can provide it, sorry for my english.

Source: Angular Questions