Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

PolymerLabs/amp-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •