We are building an AngularJS web app and we are trying to integrate DFP ads. By the way, we already have a PHP web app with DFP ads running so I am familiar with how DFP integration works, but of course it is different on an AngularJS app, due to its front end loading nature. I have already posted a question on the DFP product forum,
https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!msg/dfp/3uoGte6HxNA/twm-gT8Z0z0J, but I was hoping that I can find more AngularJS specific answers here. So, the challenge we are having is with updating what's in the <head>, specifically a <script> block in which we define the ad slots.
What would be the best way to do this on AngularJS? Create a service/provider to populate the <head> and call this from a controller/directive? Can you please provide some examples of manipulating the <head> on AngularJS?