I am trying to add dynamically set the height of a div
, but it is not successfully being set. I get the height of window and divide it by 3, but it is not working. Here is where I set the height:
<div id="wrapper" ng-style="height :hgt+'px'">
I am setting the scope variable like this:
$scope.hgt = $window.innerHeight / 3;
But the height isn't set.