title: set height of child div in AngularJS
body: <p>I am new to angularJS and trying to find height of child div from parent div.I want to do it without jquery. I tried lot of solution from here but non of them working for me.</p>
  
  <p>I have one more doubt, in jquery we can use $(".class").height() and $(".class").css("value"), like this angularJS provides any option to set the properties to parent and child div.</p>
  
  <p>here i am using directive concept to set these things,</p>
  
  <p>Code</p>
  
  <pre><code>myApp.directive('orientable', function () {       
  return {
      restrict: 'A',
      link: function(scope, element, attrs, controller) {
  
            //this both will work fine
             alert(element.children()[0].offsetHeight);
             alert(element.children()[1].offsetHeight);
  
             debugger;
  
             element.children()[0].height();
            //Uncaught TypeError: element.children(...)[0].height is not a function(…) 
  
             //this bellow code is showing the error
             element.children()[0].css('height','250px');
         //Uncaught TypeError: element.children(...)[0].css is not a function(…) 
  
  
      }
  }
  });
  
   &lt;div orientable class=main ng-app="myApp"&gt;
      &lt;div class=ele1&gt; &lt;/div&gt;
       &lt;div class=ele2&gt; &lt;/div&gt;
        &lt;div class=ele3&gt; &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/renjithgovind/xkz4xdf1/" rel="nofollow">Fiddile</a></p>