Skip to content

Using Pinia standalone (CDN or UNPKG) mode #1051

Discussion options

You must be logged in to vote
  1. Install @vue/composition-api and vue-demi.
  2. Use global variable: Pinia to access PInia's APIs.
  3. Register plugin: https://pinia.vuejs.org/api/modules/pinia.html#piniavueplugin
<!DOCTYPE html>
<html>
<head>
    <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css" rel="stylesheet">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<body>
<div id="app">
    <v-app>
        <v-main>

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@guyinpv
Comment options

@WildWorldEducation
Comment options

@lanmaster53
Comment options

@thomas-shirley
Comment options

@lanmaster53
Comment options

Answer selected by balage1551
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants