So i came across this problem where the default document mode in SharePoint 2010 was IE8 (legacy mode…) and i was developing an angular app that would be plugged into the site.

I did not want to update the masterpage as this may cause other issues with other parts of SharePoint. My only option was to update the Compatibility tag dynamically in the OnInit method on my WebPart.