PolymerLabs/amp-viewer

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

amp-viewer

<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.

Demo
-viewer src="demo/sample-content/experience-daydream-today.html"></amp-viewer>
API

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).


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.