Configure Angular Routes-
A router has no routes until you configure it. So you are configuring the Angular router for accessing your apps URLs.
//Composability and Grouping
//imports used for composing NgModules together.
imports: [
BrowserModule,
//enableTracing is used for debugging purposes only
//Enables the location strategy that uses the URL fragment instead of the history API.
RouterModule.forRoot(appRoots, { enableTracing: true, useHash:false })
]
For
more detail kindly refer the link - https://www.code-sample.com/2018/05/angular-5-6-7-routing-and-navigation.html