Name: amp-viewer
Owner: PolymerLabs
Description: null
Created: 2016-12-20 18:50:36.0
Updated: 2018-03-22 16:17:30.0
Pushed: 2017-10-10 17:13:38.0
Homepage: null
Size: 36
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
<amp-viewer>
is a vanilla custom element that loads an AMP document into a shadow root on your page. Shadow DOM ensures styles of the AMP document are encapsulated, and it is lighter than embedding an iframe.
-viewer src="demo/sample-content/experience-daydream-today.html"></amp-viewer>
Property | Description ———|———— src | The URL of an AMP article. If it's on a different domain, it must be CORS enabled (as it will be fetched by XHR).