ngx-bootstrap How to open a modal from another component?

后端 未结 3 1409
[愿得一人]
[愿得一人] 2021-01-11 17:03

What I\'m trying to do is open a modal from another component, however I keep getting this error TypeError: Cannot create property \'validator\' on string \'test1\'

3条回答
  •  情话喂你
    2021-01-11 17:18

    you only need to add your child-component into the entryComponents in your module like this:

    entryComponents: [
        childComponent
    ]
    

    it works for me

提交回复
热议问题