This is a demo of getting Google Adsense to work with AngularJS

For more information, please contact Leonard Teo.

Description of the problem

AngularJS (created by Google) is a single-page-application framework. It loads in content dynamically without a full refresh of the DOM (Document Object Model). This appears to be incompatible with Adsense and DFP.

To fix this, pass in a random value to the ad-region parameter. See the source code for more details.

Page 1 Page 2