SHARE
TWEET

Untitled

a guest Nov 1st, 2014 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app.directive('toplist', function ($compile) {
  2.         return {
  3.                 restrict: 'A',
  4.                 replace: true,
  5.                 link: function ($scope, ele, attrs) {
  6.                                 $scope.poasts = ele;
  7.                                 $scope.$watch( function (qdata) {
  8.                                 ele.html($compile(angular.element("<div ng-repeat='p in tops'>{{ p.topic }}</div>"))($scope));
  9.                                 })
  10.                 }
  11.         }
  12. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top