Can we implement AMP in an angular app?
amp-html, angularjs, mobile
Solution
Assuming you already have a site with Angular pages like:
- 1.html
- 2.html
Then you can create AMPs like:
- 1.amp.html
- 2.amp.html
1.html can use Angular and client-side javascript but 1.amp.html should be a representation of the same content but produced server-side rather than by using Angular javascript inside it. Follow the steps in here: https://ampbyexample.com/introduction/how_to_publish_amps/ and you should be fine.
Problem
I am new to AMP and have been asked to add amp to an already developed angular website. I have also read that AMP Keep all third-party JavaScript out of the critical path But I am not sure whether it is possible or not.And if possible can you share some links for that. Any help is welcome