Used ng-switch in attributecondition