templateProvider can be an annotated function (any[]) like controllerProvider, so any is a more appropriate typing.