2

こんにちは、webpack を使用してファイルをバンドルし、ngDialog を使用してポップアップを機能させようとしているときに問題が発生しました。ポップアップには「Hello!」のみが表示されます。今すぐメッセージ。

これは私の機能です:

function popupEditOptions(){
    ngDialog.open({
        template: 'src/req/edit/editOptions.html',
        scope: $scope
    });
};


これを行うと、 GET http://localhost:3000/src/req/edit/editOptions.html 404 (Not Found)というエラーが表示されます。

次のような html ファイルを要求できます。

function popupEditOptions(){
    ngDialog.open({
        template: require('src/req/edit/editOptions.html'),
        scope: $scope
    });
};

しかし今、html ファイルの内容を書き出すこのエラーが発生しました:
GET http://localhost:3000/Hello ! 404お探しのページが見つかりませんでした)

4

1 に答える 1

2

この github question: https://github.com/likeastore/ngDialog/issues/390を参照すると、ngDialog のバグである可能性があるようです。

ただし、プロパティを使用して機能させることができplain:trueます。

ngDialog.open({
   plain: true,
   template: require('src/req/edit/editOptions.html'),
   scope: $scope
});
于 2016-02-15T09:47:23.137 に答える