i have this code:
<div class="mdl-cell mdl-cell--5-col mdl-shadow--4dp" style="margin-bottom:0;" ng-show="sub.view == 'fundoCaixa'">
<div ng-if="sub.view=='fundoCaixa'" ng-controller="vender-fundoCaixa">
<div ng-include="'views/vender/fundoCaixa.html'"></div>
</div>
</div>
<div class="mdl-cell mdl-cell--5-col mdl-shadow--4dp" style="margin-bottom:0;" ng-show="sub.view == 'sangria'">
<div ng-if="sub.view=='sangria'" ng-controller="vender-sangria">
<div ng-include="'views/vender/sangria.html'"></div>
</div>
</div>
<div class="mdl-cell mdl-cell--5-col mdl-shadow--4dp" style="margin-bottom:0;" ng-show="sub.view == 'apelido'">
<div ng-if="sub.view=='apelido'" ng-controller="vender-apelido">
<div ng-include="'views/vender/apelido.html'"></div>
</div>
</div>
but if you see it is the same rule for all subviews, i need reuse it, how can i do it?
<div class="mdl-cell mdl-cell--5-col mdl-shadow--4dp" style="margin-bottom:0;" ng-show="sub.view == '$var_here'">
<div ng-if="sub.view=='$var_here'" ng-controller="$var_here">
<div ng-include="'views/vender/$var_here.html'"></div>
</div>
</div>
where there is $var_here change to context to load.
Thanks for all!