Use annotated function form to prevent ng-strict-di breaking

Use annotated function form to prevent ng-strict-di breaking, since ng-strict-di requires all injectable functions to be min safe annotated, even if there are no dependencies to be injected.