is it possible to send a variable other then msg.payload and test on it on the other template.
i test this example but it doesn't work for me.!!
template1 : <button class="inner" id="myBtn1" ng-click="send({topic: '1'})">Archive</button>
template 2:
<div id="myarchive" class="archive">
<tr ng-repeat="file in msg.payload | orderBy:sortType:sortReverse| filter:search track by $index" style="width:100%" flex>
{{file}}
</td>
</tr>
</div>
var archive = document.getElementById('myarchive');
if(msg.topic == "1")
{archive.style.display = "block";}
Okay if you can't. But anyway, to access msg properties in template node just {{topic}} is enough because of the Mustache format. See the template node info for more
ok, now i want to hide that section by double clicking on button
i make this <button class="inner" id="myBtn1" ng-click="send({topic: '1'})" ng-dblclick="send({topic: '2'})">Archive</button></div>
then
i repeat the same
tags like this
<div ng-else-if="msg.topic == 2" ng-class="{display: none}">
but it doesn' work, Am i missing something ???
"ng-else-if" doesn't exist. "ng-if" evaluates the expression and if true will display the element otherwise it won't show. So you might want to have twice your