Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is AMP ( Accelerated Mobile Pages ) compatible with angular2?

i'm developping angular 2 SPA.. I'm asking for the compatibility between angular 2 and AMP and how to implement it. Thanks,

like image 483
Aymen Debbabi Avatar asked Dec 23 '16 08:12

Aymen Debbabi


People also ask

What is AMP version of a page?

AMP (originally an acronym for Accelerated Mobile Pages) is an open source HTML framework developed by the AMP Open Source Project. It was originally created by Google as a competitor to Facebook Instant Articles and Apple News. AMP is optimized for mobile web browsing and intended to help webpages load faster.

What is the AMP project?

The Accelerated Mobile Pages (AMP) Project is an open source initiative that makes it easy for publishers to create mobile-friendly content once and have it load instantly everywhere.


2 Answers

It could become very relevant soon, once universal is more mature. It could be used to generate a static AMP version of your page.

like image 135
Sam Vloeberghs Avatar answered Nov 15 '22 18:11

Sam Vloeberghs


No, JavaScript code not provided by the AMP Project can not be on your AMP page. Though, depending on what you're doing, you could use <amp-iframe>

like image 27
Andrew Avatar answered Nov 15 '22 16:11

Andrew