How can I dynamically render a div with different classes in Angular based on a condition?
<div class="@(myArray.length>0 ? "col-md-8" : "col-md-12" )">
I'm trying to achieve that if the length of myArray is greater than 0, then it should have the class col-md-8, otherwise it should have the class col-md-12.
Within the script tag, I have defined $scope.myArray = [].