title: Load content into bootstrap popover using angular and ajax don't work
body: <p>I am trying to populate a content into an bootstrap popover using angular and ajax. Although the data have been loaded correctly (as i can see in console.log) the result don't appear in the popover's content. I think the angular's loading is not ready yet when the bootstrap popover is loaded. Thus, how can i populate this popover immediately after angular load?</p>
  
  <p>This is the code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
    var p = $("#popover").popover({
      content: $("#popover-content").html(),
      html: true
    });
  
  });
  
  (function () {
    var app = angular.module("ng-app", []);
  
    app.controller("NotificationsController", function ($scope, $http) {
      $scope.links = [];
      $scope.load = function () {
        $http.get("json.php").success(function (response) {
          console.log(response);
          $scope.links = response;
  
          // the response return is somethin like
          // [
          //    {title: "Google", url: "http://www.google.com"},
          //    {title: "Gmail", url: "http://www.google.com"},
          // ]
  
        });
      };
      $scope.load();
    });
  })();</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="nav navbar-nav"&gt;
    &lt;li data-ng-controller="NotificationsController as notification"&gt;
      &lt;a href="#" data-toggle="popover" id="popover" title="Notificações" data-placement="bottom" data-trigger="focus"&gt;
        &lt;span class="badge"&gt;{{links.length}}&lt;/span&gt;
      &lt;/a&gt;
  
      &lt;div id="popover-content" style="display: none"&gt;
        &lt;div data-ng-repeat="link in links"&gt;
          &lt;a href="{{link}}"&gt;{{link.title}}&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks in advance</p>