我只是想在 Angular 模块中导出“@ptkdev/webcomponent-instagram-widget”,但我不知道如何。我已经尝试了一切。
你有想法吗?
该组件正在工作,但是当我编译项目时它显示错误,因为我正在使用另一个社交组件。
这是我的模块:
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgxTwitterTimelineModule } from 'ngx-twitter-timeline';
import '@ptkdev/webcomponent-instagram-widget';
import { SocialComponent } from './social.component';
import { TranslateModule } from '@ngx-translate/core';
import { NbCardModule } from '@nebular/theme';
@NgModule({
declarations: [SocialComponent],
imports: [
CommonModule,
NgxTwitterTimelineModule,
NbCardModule,
TranslateModule,
],
exports: [SocialComponent],
})
export class SocialModule {}
提前致谢