I have to create routing file in Angular Project, and all path and component name are stored in database.
component will select as per login user rights
now I want to crate route array in routing module file.
I will get all rout path from data base according to user and make route array.
But I have no idea how to convert string component name to component.
Please help if anyone have idea.