use a provider to configure if the appliaction is a single page app