خرید بک لینک

Vote count: 0

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?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 8 ارديبهشت 1395 ساعت: 1:04

صفحه بندی