Skip to content

Child modal  #6666

Closed
Closed
@huangyedie

Description

@huangyedie

Before opening an issue, please search for duplicates (opened and closed) https://github.com/valor-software/ngx-bootstrap/issues There's no need to open an issue here if you want to ask general question, use StackOverflow or Slack instead

Bug description:

import { ModalDirective } from 'ngx-bootstrap/modal';

@ViewChild('childModal', { static: false }) public childModal?: ModalDirective;

console.log(this.childModal) == undefined


image

image

Plunker/StackBlitz that reproduces the issue:

Using Plunkr, StackBlitz is the best way to show your issue. Issues without link to an example of reproduction might be closed.

You can use one of starter templates:

Plunkr: https://plnkr.co/edit/0NipkZrnckZZROAcnjzB?p=preview

StackBlitz: https://stackblitz.com/edit/ngx-bootstrap?file=app%2Fapp.module.ts

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap:9.0

Angular:15

Bootstrap:

Build system: Angular CLI, System.js, webpack, starter seed:

Expected behavior

A clear and concise description of what you expected to happen.

Successfully ejected


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions