【发布时间】:2018-05-24 22:36:14
【问题描述】:
我正在尝试使用https://www.npmjs.com/package/ngx-intl-tel-input, 我有我的 module.ts:
import {NgxIntlTelInputModule} from "ngx-intl-tel-input";
import {BsDropdownModule} from "ngx-bootstrap";
@NgModule({
imports: [
NgxIntlTelInputModule,
BsDropdownModule.forRoot()
],
和html代码:
<h1>
{{phone_number}}
</h1>
<ngx-intl-tel-input [(value)]="phone_number"></ngx-intl-tel-input>
但我一直收到以下错误:
ERROR 错误:未捕获(承诺):错误: StaticInjectorError(...)[BsDropdownDirective -> ComponentLoaderFactory]:StaticInjectorError(平台: 核心)[BsDropdownDirective -> ComponentLoaderFactory]: NullInjectorError:没有 ComponentLoaderFactory 的提供者!错误:StaticInjectorError(...)[BsDropdownDirective -> ComponentLoaderFactory]:StaticInjectorError(平台: 核心)[BsDropdownDirective -> ComponentLoaderFactory]:
【问题讨论】:
标签: angular