Creating a single instance of a class within a Vue application
问题 I'm new to Vue and I'm struggling to wrap my head around how to implement what seems to me like a good case for a global variable or singleton. The background is that I'm using Azure AD B2C for authentication with the MSAL library. MSAL requires a single instance of the Msal.UserAgentApplication to be declared and then shared through the application. What I'm struggling with is how to declare that instance somewhere central and then access it from each component including the router. At the