Adding an angular service to access user prefs synchronously