title: Angular directive watch height
body: <p>The question has already been asked but can't make it work properly.</p>
  
  <p>In my directive, using this piece of code works if element's height goes up, but not when going down.</p>
  
  <pre><code>$scope.$watch(function () {
          return element[0].offsetHeight;
      },
      function (value) {
          console.log(value);
      }
  );
  </code></pre>
  
  <p>edit : the height changes because in the parent controller I use a ng-repeat</p>