I have two question on angularJS, i use differents sections and i want to show just one so i did : <section ng-show="section6_us"> </section>
and <section ng-show="section7_us"> </section>
for exemple and i have a lot of variable in my scope.
Can we do the thing like this ? <section ng-show="{section6_us == "section6"}"> </section>
and <section ng-show="{section7_us == "section7"}"> </section>
With a variable and a compare ? it would be great because i can't use ng-switch and ng-if and i have a lots of variable like section1,section2,...section 14 etc.
Second, it's possible that we can use the scope like this ? $scope.("section"+i) = true
for example ?
Thank you in advance Ben