Open dstvishnu opened 7 years ago
It will obviously open all collapsibles because you are setting the initially-open="true" option as true. You can set initially-open value to be a variable or expression so it is only true for the item you want to be open initially.
Why it is opening all the elements after setting one-at-a-time="true"?
one-at-a-time="true" ensures that when a user opens a new collapsible, the other opened collapsible is closed automatically. It doesn't interfere with initially-open="true" value cause that depends on developer.
"You can set initially-open value to be a variable or expression so it is only true for the item you want to be open initially."
I cant seem to get this to work - could you give an example? I just want to open only the first item output from an ng-repeat
when i tried to use the initially-open="true" while using ng-repeat to get the data for the itemTitle.It opens all the elements instead of the only one element