I think this switch statement should be in the `ng-bynd-type` directive