I have a div which has flexible height and two div's inside it. First one has fixed height of 60px, second ones height should contain all other left area inside the outer div. I need angularJS answer, not the JavaScript itself or JQuery
I looked at forms and there was written only cases in which outer div is browser window. Also I tried to write directives by myself but no solution.
Would appreciate any answer or suggestion.
html code
<div ng-app = "myApp" id = "outer" ng-style = "styleOuter()">
<div id = "first" style = "height: 60px">first content</div>
<div id = "second" ng-style = "style()">second content</div>
</div>
Outer div: styleOuter() function in angularJS directory sets outer divs height to "windowSize-100px"
First div: Its height is fixed (60px)
Second div: style() function in angularJS directory should set second divs height to "outerDivSize - 60px"