An Angular JS directive I created for a work project to match div heights.
- Add
angular-matchheight.jsto your code:
<script src="angular-matchheight.js"></script>- Add a dependency to the
angular-matchheightmodule in your application.
angular.module('MyApp', ['angular-matchheight']);- Add the
iln-match-heightattribute to the container of the elements you want to match - All elements within the
iln-match-heightparent will resize to match height
<div iln-match-height>
<div>these</div>
<div>will<br/>be<br/>the<br/>same<br/>height</div>
</div>