ng-switch integration