0
ボタンをクリックすると別のコンポーネントが呼び出されます。角度1.5の関数を新しいコンポーネントとして呼び出すと、
model.alert = function() {
modalInstance = $uibModal.open({
template: '<abc-xyz return-value="model" on-cancel="Cancel()"></abc-xyz>',
scope: modalScope,
backdrop: 'static',
windowClass: 'callrecord-popup'
});
modalScope.Cancel = function() {
modalInstance.close();
}
}
ここで、abc-xyzコンポーネントが呼び出されるとすぐに、関数intを呼び出したいと思います。私はそれがこのXYZ関数を呼び出す必要があります最初のコンポーネントのボタンをクリックするとすぐに
function taxReconciliationAlertController($scope) {
var model = this;
// Inside here i have written the function
function xyz(){
//some code here which returns data to html
}
}
が、私はそれを呼び出すことができません:
コンポーネントのjsがあります。誰かが私を助けてくれましたか?