Here is a blank angular 7 project in stackblitz, in Angular 6 I used constructor(private bsModalRef: BsModalRef)
so I can pass values to my child popup component.
But when I update to angular 7, it said Module not found: Error: Can't resolve 'ngx-bootstrap/modal/bs-modal-ref.service'
.
In stackblitz, it asked me to install ngx-bootstrap but I already installed.
Any idea?
First thing is you need to change your import in
app.component.ts
fromto
then you will have to provide providers in
app.module
working STACKBLITZ