Unable to capture Adaptive Card events triggered in angular js 1.x directive

ぃ、小莉子 提交于 2019-12-13 03:12:45

问题


I am unable to capture the onExecuteAction emitted by the Adaptive Card. Can you please provide any pointers on the missing piece here.Also I am facing similar issue in binding,trigger and capturing events from the Adaptive Cards like showing/collapsing elements(triggered by Action.Showcard elements). Any pointers/guidence is appreciated.Thanks in advance.Attaching the plnkr code. https://plnkr.co/edit/2YB2zV3FL4JZgJ2yC4FG `

    return {
        restrict: 'AE',
        replace: true,
        scope:false,
        template: renderedCardNew.outerHTML,//$scope.trustedHtml,//'<p style="background-color:{{color}}">Hello World</p>',
        link: function (scope, elem, attrs) {
            elem.bind('click', function () {

                scope.$apply(function () {
                    scope.color = "white";
                });`. 

来源:https://stackoverflow.com/questions/44892036/unable-to-capture-adaptive-card-events-triggered-in-angular-js-1-x-directive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!