vue-amp-shadow
v1.0.5
Published
AMPShadow Component
Downloads
9
Readme
vue-amp-shadow
Installation
Package is installable via NPM
npm install --save vue-amp-shadow
or via Yarn
yarn add vue-amp-shadow
Usage
1. Include Shadow AMP in the <head> of your page
<head>
...
<script async src="https://cdn.ampproject.org/shadow-v0.js"></script>
...
</head>
2. Mount with component
import VueAmpShadow from "vue-amp-shadow";
export default {
...
components: {
VueAmpShadow
}
...
};
<!--
Set "src" prop to an AMP document URL.
If it's on a different domain, it must be CORS enabled.
-->
<vue-amp-shadow src="https://ampbyexample.com"></vue-amp-shadow>