These are chat archives for angular/material

10th
Oct 2017
Nathan Brenner
@nathanBrenner
Oct 10 2017 16:30
Question about the overlay with autocomplete. There's inline styles in the overlay. How do I override those styles?
darshu514
@darshu514
Oct 10 2017 18:18

Material 2 dialog not opening in error block when the API returns 404.
This is my code. The dialog is not opening in the error block of the code. The dialog does open when the API call returns 200(Success).

editBox() {
// The dialog opens here
this.loadingDialogComponent = this.dialog.open(LoadingDialogComponent);
this.dataService.checkItems(this.itemId).subscribe((results) => {
this.loadingDialogComponent.close();
this.createChildDialog = this.dialog.open(CreateChildDialogComponent, {
height: '80%',
width: 'auto'
});
}, (error) => {
this.loadingDialogComponent.close();
// The dialog doesn't open here
this.createChildDialog = this.dialog.open(CreateChildDialogComponent, {
height: '80%',
width: 'auto'
});
this.createChildDialog.afterClosed().subscribe(result => {
this.createChildDialog = null;
});
});
}

WebbKD
@WebbKD
Oct 10 2017 21:01
hey guys, it is my first time using angular and using restful apis and these tutorials confuses me, could someone explain it in simple terms
WebbKD
@WebbKD
Oct 10 2017 21:55
ANY ONE?