Привет, я использую Angular 6 с ng-boostrap. Я добавил модальный вызов FocusComponent, и мне нужно было добавить его в entryComponents, поэтому я добавил ConfirmAutoFocusComponent в app.module.ts примерно так:
bootstrap: [AppComponent, ConfirmAutoFocusComponent]
itработает, но выведите мне сообщение об ошибке на консоли F12
ERROR Error: The selector "app-confirm-auto-focus" did not match any elements
at DefaultDomRenderer2.push../node_modules/@angular/platform-browser/fesm5/platform-browser.js.DefaultDomRenderer2.selectRootElement (platform-browser.js:1068)
at DebugRenderer2.push../node_modules/@angular/core/fesm5/core.js.DebugRenderer2.selectRootElement (core.js:11449)
at createElement (core.js:8129)
at createViewNodes (core.js:10360)
at createRootView (core.js:10313)
at callWithDebugContext (core.js:11344)
at Object.debugCreateRootView [as createRootView] (core.js:10831)
at ComponentFactory_.push../node_modules/@angular/core/fesm5/core.js.ComponentFactory_.create (core.js:8659)
at ComponentFactoryBoundToModule.push../node_modules/@angular/core/fesm5/core.js.ComponentFactoryBoundToModule.create (core.js:3311)
at ApplicationRef.push../node_modules/@angular/core/fesm5/core.js.ApplicationRef.bootstrap (core.js:4540)
Я видел другие посты об этой проблеме, но похоже, что ее работа не работает