angular.js - How to deal with operation symbols in angular's ng-if expression? ?
仅有的幸福
仅有的幸福 2017-05-15 17:04:21
0
4
761
ng-if="curindex==(node.nodeIndex+1)"

What I write this way is invalid,

curindex==node.nodeIndex+1

Written like this, the calculation is wrong.

How to deal with it? ? ? ? What I mean is the comparison between node.nodeIndex 1 and curindex

仅有的幸福
仅有的幸福

reply all(4)
PHPzhong

The first way of writing is correct. Angular conflicts with some libraries and ng-if will fail. Also, other parts of what you wrote are wrong.

给我你的怀抱

It seems to me that there is no problem. The problem lies elsewhere. Please post an error report

Ty80

(curindex==node.nodeIndex+1) Try it

習慣沉默
ng-if="curindex=='node.nodeIndex+1'"

There should be no problem if you write like this

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template