There are two links (about the behavior of element.find and then addClass in angularJS)
Static: jsfiddle
Dynamic (generated via ng-repeat nested loop): jsfiddle
Question:
In the second code, why is only the first layer's li assigned class('1111111111111')?
Personal understanding:
The loop starts from the outermost to the innermost; when it ends, it goes from the innermost to the outermost; so to determine whether the entire ng-repeat ends, just directly determine whether the outermost ng-repeat ends.
I just started learning, and I started learning angularjs2.0 directly. I don’t want to learn 1.x, it will be outdated before I learn it.