3

私は 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;

ここでエラーが表示されます。

4

1 に答える 1

2

以前にもこの問題がありましたが、以下を削除して解決しました。

<DynamicComponent [componentTemplate]=\"template\" [componentInputData]=\"context\">\n            </DynamicComponent>\n        </div>\n   
于 2016-11-12T12:18:09.857 に答える