I have propably very basic question, but can't find solution. I'm building small app in Angular. I have first component that is login screen. After successfull login I want to show user a table with some data.
I create another component "table", that have this data. Before I made connection between login and showing data, I want just work on style of table. And... I don't know how to entry only to this view.
I mean, when I run http://localhost:4200/ - I see my login screen. But when I try reach http://localhost:4200/table I still... see login screen.
I added in app.module.ts routing:
const appRoutes: Routes = [
{ path: 'table', component: TableComponent },
];
and
RouterModule.forRoot([
{path: 'table', component: TableComponent},
]),
I know, that I need later do redirect from login screen to this, but at this point I don't know how to reach this component view. Could someone advise me and explain, because I'm sure I don't see and understand something here.