vue-amp-shadow

1.0.5 • Public • Published

vue-amp-shadow

Build Status License: MIT

Installation

NPM

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>

learn more

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>

Readme

Keywords

none

Package Sidebar

Install

npm i vue-amp-shadow

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

29.5 kB

Total Files

14

Last publish

Collaborators

  • yukagil