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();
}
}
现在我想打开一个函数int,abc-xyz组件。
组件的JS是:
function taxReconciliationAlertController($scope) {
var model = this;
// Inside here i have written the function
function xyz(){
//some code here which returns data to html
}
}
当我点击它应该调用此函数XYZ第一部件的按钮,但我无法调用它。有人能帮助我吗?