-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
selimdoyranli
committed
May 8, 2023
1 parent
a4de217
commit 734250e
Showing
3 changed files
with
57 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.14"></script> | ||
<script src="../../dist/vue2/v-lazy-component.global.min.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<h1>Scroll down</h1> | ||
<div style="height: 150vh;"></div> | ||
|
||
<lazy-component> | ||
<h2>My Component</h2> | ||
|
||
<template #placeholder> | ||
<h2>Loading...</h2> | ||
</template> | ||
</lazy-component> | ||
</div> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Document</title> | ||
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.14"></script> | ||
<script src="../../dist/vue2/v-lazy-component.global.min.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<h1>Scroll down</h1> | ||
<div style="height: 150vh"></div> | ||
|
||
<script> | ||
new Vue({ | ||
el: "#app" | ||
}); | ||
<lazy-component> | ||
<h2>My Component</h2> | ||
|
||
Vue.use(LazyComponent); | ||
</script> | ||
</body> | ||
<template #placeholder> | ||
<h2>Loading...</h2> | ||
</template> | ||
</lazy-component> | ||
</div> | ||
|
||
<script> | ||
new Vue({ | ||
el: '#app' | ||
}) | ||
|
||
Vue.use(LazyComponent) | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> | ||
<script src="../../dist/vue3/v-lazy-component.global.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<h1>Scroll down</h1> | ||
<div style="height: 150vh;"></div> | ||
|
||
<lazy-component> | ||
<h2>My Component</h2> | ||
|
||
<template #placeholder> | ||
<h2>Loading...</h2> | ||
</template> | ||
</lazy-component> | ||
</div> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Document</title> | ||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> | ||
<script src="../../dist/vue3/v-lazy-component.global.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<h1>Scroll down</h1> | ||
<div style="height: 150vh"></div> | ||
|
||
<script> | ||
const app = Vue.createApp({}) | ||
|
||
app.use(LazyComponent) | ||
<lazy-component> | ||
<h2>My Component</h2> | ||
|
||
app.mount('#app') | ||
</script> | ||
</body> | ||
<template #placeholder> | ||
<h2>Loading...</h2> | ||
</template> | ||
</lazy-component> | ||
</div> | ||
|
||
<script> | ||
const app = Vue.createApp({}) | ||
|
||
app.use(LazyComponent) | ||
|
||
app.mount('#app') | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters