私は Angular 2 + TypeScript を使用しています。現在、angular2-busy の追加が進行中です。
このライブラリには angular2-dynamic-component を含める必要がありますが、どうすればよいかわかりません。
これはアプリモジュールです
import {BusyModule} from 'angular2-busy/build/src';
import {DynamicComponentModule} from 'angular2-dynamic-component'
@NgModule({
imports: [
BusyModule,
DynamicComponentModule
],
何が問題で、どうすれば修正できますか?
UPDATE angular2-busy/busy.component.js
BusyComponent = __decorate([
core_1.Component({
selector: 'ng-busy',
template: "\n <div [class]=\"wrapperClass\" *ngIf=\"isActive()\" @flyInOut>\n <DynamicComponent [componentTemplate]=\"template\" [componentInputData]=\"context\">\n </DynamicComponent>\n </div>\n ",
animations: [
core_1.trigger('flyInOut', [
core_1.transition('void => *', [
inactiveStyle,
core_1.animate(timing)
]),
core_1.transition('* => void', [
core_1.animate(timing, inactiveStyle)
])
])
]
}),
__metadata('design:paramtypes', [promise_tracker_service_1.PromiseTrackerService])
], BusyComponent);
return BusyComponent;
ここでエラーが表示されます。