While working on my angular project, I encountered a rather peculiar issue. I have organized my project into separate modules for layouts, login, and dashboard. Specifically for the login page, I wanted to implement a unique layout. Here's how I tried to achieve that:
import { LoginLayout } from '../layouts/login-layout/login-layout.component'; // this line works fine
import { LoginLayout } from '../layouts'; // however, this line causes an issue
import {
loginRoute,
resetPasswordRoute
} './';
const LOGIN_ROUTES = [loginRoute, resetPasswordRoute];
export const loginRoute: Routes = [
path: '',
component: LoginLayoutComponent,
children: LOGIN_ROUTES
]
I have exported the login layout from index.ts
within the layouts
folder like so:
...
export * from './login/login-layout/login-layout.compenent';
I am perplexed as to why one import statement works while the other does not. Strangely, there are no error messages displayed either.