I am using AngularJS to add some more advanced functionality to several of my Joomla article pages. On these pages I need to add the ng-app attribute to the
<HTML> tag on my page. Currently the normal HTML tag for my Joomla (v3.3) pages looks like this;
<html prefix="og: http://ogp.me/ns#" xml:lang="en-gb" lang="en-gb">
and I need it to look like this;
<html prefix="og: http://ogp.me/ns#" xml:lang="en-gb" lang="en-gb" ng-app="dataManager">
This needs to be a bit dynamic since different pages may need a different ng-app directive. Is there a proper way to do this in Joomla?
I am currently importing AngularJS using the following:
<?php $document = JFactory::getDocument(); $urlAngular = "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.21/angular.min.js"; $document->addScript($urlAngular); ?>
Thank you for any help you can give.