clarify ng-switch code