8

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

Aymen Debbabi
  • 95
  • 1
  • 7

2 Answers2

4

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

Sam Vloeberghs
  • 1,082
  • 5
  • 18
  • 29
3

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>

Andrew
  • 1,203
  • 9
  • 13