Glyphicon-chevron-down 및 glyphicon-chevron-right에 주문을 추가하기 위해 템플릿에 ng-class="{glyphicon-chevron-down:isOpened, glyphicon-chevron-right: !isOpened}" 명령이 있습니다. 따옴표와 큰따옴표 모두 오류를 보고하며, 따옴표도 오류를 보고하지 않습니다(ng-class의 클래스 이름에 -가 있으면 따옴표로 묶어야 합니다). 이 상황에서는 어떻게 해야 할까요?
으아악
ng-class="{'active':selected}"
1.4.5에서 유효합니다. 등. . 작은따옴표가 작동해야 합니다
먼저, Angle 버전이 무엇인가요? 이것은 매우 중요합니다!
를 참조하세요.자세한 내용은 http://stackoverflow.com/questions/15557151/ngclass-style-with-dash-in-key