0
modalInstance
を使用しようとしています。 私は以下の持っている:まさに私がやろうとしている何引数 'formErrorLogController'は関数ではなく、定義されていません
$scope.openClaimLogError = function (deni_arr) {
$scope.data = {
deni_arr : deni_arr
};
modalInstance = $modal.open({
templateUrl: 'app/shared/templates/formErrorLog.html',
controller: 'formErrorLogController',
resolve: {
data: function() {
return $scope.data.deni_arr;
}
}
});
}`
This code is in Controller1.js
And in Controller2.js I have the following:
`'use strict';
app.controller('formErrorLogController',
function ($scope, $cookies, claimsService, $modal, $filter, data) {}`
は、私はそれを印刷できるように、第2のコントローラにデータを送信することです。
は、なぜ私はこのようなエラーが出るん:エラーは、それがコントローラ欠けがあると言うのでError: [ng:areq] Argument 'formErrorLogController' is not a function, got undefined
スクリプトリファレンス – Aravind
@Aravindは含まれていない可能性があります。 もう少し説明しました:form_page.htmlのコントローラ(controller1.js)にform_page.htmlとformErrorLog.html.html(上のように)があります。渡したい未完成のフィールドを持つ配列がありますformErrorLog.htmlのコントローラ(controller2.js)は、モーダルに表示されます。 –
@FineasSilaghi in index.html? – tanmay