I have this html body that will invert the Boolean variable d.expandedBlog
when clicked. It is working normally.
<div class="article-blog-icon-comment">
<i class="fa fa-commenting-o article-blog-menu-topbar"
ng-click="d.expandedBlog = !d.expandedBlog" pr-expand-article="d.article.uid"
expandedBlog="d.expandedBlog"></i>
</div>
But now I want the same html body to also invert the variable d.expanded
.
I tried to do this:
<div class="article-blog-icon-comment">
<i class="fa fa-commenting-o article-blog-menu-topbar"
ng-click="d.expandedBlog = !d.expandedBlog, d.expanded = !d.expanded"
pr-expand-article="d.article.uid"
expandedBlog="d.expandedBlog" expanded="d.expanded"></i>
</div>
But it's giving syntax error, I do not know the sintace to do this kind of thing. What could be done here?