Angular Nebular styles does not apply for NbChatComponent
I have an ongoing angular project and I'm trying to add Nebular Chat UI to the project.
I installed nebular with npm and did the imports as mentioned in the site. Functionality is working as expected, but the styles are not applied to the component.
Below are the steps I followed.
npm install --save @nebular/theme @angular/cdk @angular/animations
npm install --save @nebular/eva-icons
Imported NbThemeModule and NbChatModule in app.module.ts
Added styles in angular.json
Added html component (Sample available in the site)
ng add @nebular/theme
?
`
openDialog() {
const modal = this.modal.open(ModalDoctor, {
width: '640px',
});
modal.afterClosed().subscribe(result => {
this.getDoctors();
});
}
`
` create(value: any) {
this.submitted = true;
this.adminService.addDoctor(this.doctors)
.subscribe(data => console.log(data),
error => console.log(error));
this.doctors = new Doctor();
}
close() {
this.modal.close();
}
@saidazimabdukhamidov then - in your dialog you can get the id by doing:
this.id = data.id;
be sure to add @Inject(MAT_DIALOG_DATA) public data: myDataInterface to the constructor of your dialog component
Hey everyone, hope you're doing well. I am using Angular material paginator on the front end. The Oracle table has 1.3 million records in the DB. I can't fetch all of them at a time(obvious), I need the paginator to make sure to display there are 130k pages assuming 10 records per page (130 k * 10 = 1.3 million). But the problem is material paginator is showing the total records to be the number of records available in the MatDataSource. In my case, I am fetching 30 records initially. The paginator is only showing 3 pages with 10 records per page.
But then, how can I tell the material paginator to show 130k pages and total records as 1.3 million (assuming 10 records per page) with out fetching the data unless I go to a particular page ?
Any leads will be very helpful.
Thank you :)
I am trying to create dynamic table component using Mat Table. I am passing column names and data as input to this component. But when I am changing the column names and data, the table is not refreshing. What am I missing here?
I have now resolved this issue by calling change detection manually in ngOnChanges() setTimeout(() => this.cdr.detectChanges());
selector: 'mat-table, table[mat-table]',
exportAs: 'matTable',
template: CDK_TABLE_TEMPLATE,
styleUrls: ['table.css'],
host: {
'class': 'mat-table',
}