I have an application where I want to inject a smartBaer meta tag, but only on certain pages.
On my index page I have:
<!DOCTYPE html>
<html ng-app="ngBoilerplate" ng-controller="AppCtrl">
<head>
<title ng-bind="pageTitle"></title>
<!-- add smart baer to select pages through smartBaer directive -->
<smart-baer></smart-baer>
</head>
<body>
<ui-view></ui-view>
</body>
</html>
I have a directive:
angular.module('boh.components.smartBaer', [])
.directive('smartBaer', function(){
retu {
restrict: "E",
template: '<meta name="apple-itunes-app" content="app-id=1080200000"></meta>',
replace: true
} ;
});
My question is, do I simply call the directive by injecting the directive into my other page controllers?
