I think the naming might be clearer if this variable was renamed to `$scope.activeWidget` (or `activeIndex`?) and the function with the same name was renamed to `$scope.widgetClass` or something like that.