fixed bidirectional primitive binding issue with ng-switch using scope inheritance best practices