Use provider to configure single page application mode.

Hi,
since if an application is single page does not change during the runtime it makes more sense for me to use a provider and set the single page mode in the provider configuration.