I'm trying to add a meta tag dynamically, I tried this fiddle, from this answer.
page:
<html ng-app="meumobiApp" ng-controller="SiteCtrl">
<head>
<smart-banner></smart-banner>
</head>
<body></body>
<html>
and directive:
module.directive("smartBanner",function(){
return {
restrict: "E",
template: '<meta name="apple-itunes-app" content=""></meta>',
replace: true,
link: function(scope) {}
}
});
But the tag is being inserted in the body tag instead of the head.
It's possible to insert tags to the head or I must try something else?