Skip to content

Commit

Permalink
Docs: fix code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed Sep 17, 2023
1 parent 0e9c87b commit 9b24a17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/essential/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ import * as CookieConsent from "vanilla-cookieconsent";
export default {
install: (app, pluginConfig) => {
app.config.globalProperties.$cc = CookieConsent;
app.config.globalProperties.$CookieConsent = CookieConsent;
app.config.globalProperties.$CookieConsent.run(pluginConfig);
}
}
```
::: info
The newly created VUE Plugin will allow you to access CookieConsent from any component, using either `this.$cc` or `$cc`.
The newly created VUE Plugin will allow you to access CookieConsent from any component, using either `this.$CookieConsent` or `$CookieConsent`.
:::
"Register" the plugin in your root/APP component, inside `main.js`:
Expand Down

1 comment on commit 9b24a17

@vercel
Copy link

@vercel vercel bot commented on 9b24a17 Sep 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cookieconsent-docs – ./

cookieconsent-docs-orest.vercel.app
cookieconsent.orestbida.com
cookieconsent-docs-git-v30-beta-orest.vercel.app

Please sign in to comment.