I found a tutorial that I am trying to emulate from this website
However, when I insert the template into my HTML file
<div class="modal fade" bsModal #staticModal="bs-modal" [config]="{backdrop: 'static'}"
tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
.........
.......
</div>
I also added the following entry in my app.module.ts file
import { ModalModule } from 'ng2-bootstrap';
@NgModule({
imports: [ModalModule.forRoot(),...]
})
and then I encountered this error message, but I'm not sure what is missing
EXCEPTION: Uncaught (in promise): Error: Template parse errors:
There is no directive with "exportAs" set to "bs-modal" ("
</p-dialog>
<div class="modal fade" bsModal [ERROR ->]#staticModal="bs-modal" [config]="{backdrop: 'static'}"
tabindex="-1" role="dialog" aria-labell"): PreCheckComponent@80:32
Can't bind to 'config' since it isn't a known property of 'div'. ("
</p-dialog>
Based on the guide, it seems like I shouldn't need to import anything into my component