Monday, 13 June 2016

angularjs ng-include does work

Below two divs should give same result:

<div class="main_container" ng-if="displayLayout == 'layout-3-reviews'" ng-include="'app/views/includes/include.3.reviews.html'" />



<div class="main_container" ng-if="displayLayout == 'layout-3-reviews'">
    <div class="horizontalDiv" ng-include="'app/views/includes/include.3.reviews.html'"></div>
</div>

However, grunt build doesn't like the first one. I think some html simplifier or optimisations removed the ng-include.




No comments:

Post a comment