Open suranan opened 7 months ago
@suranan Did you import the NbAlertModule
into your Modules file? E.g. if you've created an auth module for your project you should have a file called auth.module.ts
. In it you would need to import the required modules. Here is a shortened version of my auth.module.ts
file
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { NbAuthModule } from '@nebular/auth';
import {
NbAlertModule,
} from '@nebular/theme';
@NgModule({
declarations: [],
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
CommonModule,
NbAlertModule, <-- add this to your modules.ts imports
],
})
export class AuthModule {}
This should fix the error. Hope it helps.
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
I am customizing Login page by following document custom-auth-components (https://akveo.github.io/nebular/docs/auth/custom-auth-components#custom-auth-components, https://github.com/akveo/nebular/blob/master/src/playground/without-layout/smart-home/auth/login/login.component.html). but I facing issue
2 <nb-alert *ngIf="showMessages.error && errors?.length && !submitted" outline="danger" role="alert">
Expected behavior:
Steps to reproduce:
Related code:
Other information:
npm, node, OS, Browser
Angular, Nebular