Fixed syntax error
parent
d2e86b5b88
commit
0efac060bd
|
@ -39,12 +39,12 @@ app.use(PrimeVue, {
|
|||
},
|
||||
code2: {
|
||||
basic: `
|
||||
<Button label="Toggle Color Scheme" @click="toggleColorScheme()" />
|
||||
<Button label="Toggle Dark Mode" @click="toggleDarkMode()" />
|
||||
`
|
||||
},
|
||||
code3: {
|
||||
basic: `
|
||||
const toggleColorScheme() {
|
||||
function toggleDarkMode() {
|
||||
const element = document.querySelector('html');
|
||||
element.classList.toggle('my-app-dark');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue