Skip to content

Commit

Permalink
[Docs] ScrollSpy directive JSFiddle
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed May 9, 2017
1 parent 5656434 commit d5f10a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/directives/scrollspy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import readme from './README.md';
export default {
readme,
meta: {
title: 'ScrollSpy'
title: 'ScrollSpy',
jsfiddle: ['rau316p6', 'hbg1w956']
}
};
13 changes: 12 additions & 1 deletion docs/nuxt/pages/docs/directives/_directive.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
<template>
<div class="container">
<div v-html="readme"></div>

<h3>Examples</h3>

<jsfiddle v-for="fid in meta.jsfiddle"
:slug="fid" tabs="result,html,js"
:key="fid"
>
</jsfiddle>

</div>
</template>


<script>
/* eslint-disable import/no-unresolved */
import jsfiddle from '~components/jsfiddle.vue';
import directives from '../../../../directives';
export default {
components: {},
components: {jsfiddle},
layout: 'docs',
asyncData({params: {directive}, redirect}) {
Expand Down

0 comments on commit d5f10a0

Please sign in to comment.