how to call ngx modal in ngOninit code example Example: bs modal service close this._bsModalRef.hide();