i have a Login module which contains login.html. i want login to be the default module and login.html as the default opening page.
Asked
Active
Viewed 82 times
1 Answers
0
in main.ts file you will have something like this
import { AppModule } from './app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
replace this with
import { LoginModule } from './login.module';
platformBrowserDynamic().bootstrapModule(LoginModule);

Rameez Usmani
- 135
- 1
- 8
-
thanks, will try this. Also, how do i come back to App after login ? – A V Sep 08 '21 at 10:13
-
Not very sure but just like any other page you can set route to your App..and then navigate to that route – Rameez Usmani Sep 08 '21 at 18:38