Open beyondszine opened 4 years ago
Couldn't open the stackblitz
Did you put the component you are trying to open on EntryComponents?
I think it's because you are not using Nebular Layout. Put your content inside <nb-layout></nb-layout>
in the app.component.html
And consider the @caiomcoliveira, otherwise it would throw:
error: No component factory found for ArtefactdetailComponent. Did you add it to @NgModule.entryComponents?
Couldn't open the stackblitz
Did you put the component you are trying to open on EntryComponents?
@caiomcoliveira yes indeed. I am not sure why stackblitz couldn't open. Can you please retry via https://stackblitz.com/edit/angular-acregw Yes, it is in the entryComponents list.
I think it's because you are not using Nebular Layout. Put your content inside
<nb-layout></nb-layout>
in the app.component.htmlAnd consider the @caiomcoliveira, otherwise it would throw:
error: No component factory found for ArtefactdetailComponent. Did you add it to @NgModule.entryComponents?
Indeed, the html code inside app.component.html is wrapped under
@beyondszine The following is the correct way of wrapping in nb-layout:
template : '<nb-layout><nb-layout-column><button nbButton (click)="open()">Open Dialog</button></nb-layout-column></nb-layout>'
Thanks @maihannijat This way, it works for sure. I have been appalled by the browsers error display on console. Firefox says:
while Chrome showed an error of
Regarding the documentation & guides I have been following:
For all of the files( Loader Component, Module, & the component to be loaded), I wonder how things are working here. Am I still overlooking something crucial, or the docs & guides need update?
@beyondszine Can't open stackblitz. Make sure it's not private.
I Actually got the same Error (with both kinds of Error Codes in Firefox and Chrome), which caused the whole Application to break. After checking the error Code in Chrome and more Debugging I found out that adding the NbTheme Module Import in any submodule, conflicts with all overlays from Angular Material (matDialog, matSnackbar, matMenu)
See my stackoverflow post here: https://stackoverflow.com/questions/63849598/angular-nebular-chat-only-for-one-module-and-component
Issue type
I'm submitting a
Issue description NbDialog service is not able to open a dialog box by giving an error " ERROR TypeError: "this.container is undefined" for NbDialog"
Steps to reproduce: https://angular-acregw.stackblitz.io
Kindly help by giving it a look.