使用$ mdDialog.show在第二个组件中更改一个组件中的值

时间:2018-06-26 19:47:05

标签: angularjs dialog

在1个控制器中,我有一个变量: $scope.text = 'text';

我单击按钮(在1个控制器中)。我打开窗口:

function clickDialog() {
    $mdDialog.show({
        controller: 'SecondController',
        templateUrl: 'path/second.html',
        parent: angular.element(document.body)                 
    });
}

在控制器SecondController中,我单击按钮,并且想要更改1个控制器中的变量$scope.text = 'another text';

如何做到?

1 个答案:

答案 0 :(得分:0)

这是您要执行的操作: https://codepen.io/yonathanb/pen/XYPwQZ?editors=1010

只需使用:

JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'QMGR' with connection mode 'Client' and host name 'qmgrhost(1431)'. Please check if the supplied username and password are correct on the QueueManager you are connecting to...JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED'). "

在您的开启功能中