Removed getPartial method as redundant used ng-switch instead