Partial View does not load controller of Angular js

0

Next: I have an index.cshtml that contains Header and Footer attached to a controller1. The idea is to call some partial view through the menu and load it into the div:

 <div><ng-view></ng-view></div>. 

And every partial view will have its control. I can load partial view but I can not control the elements. An example of a button. Here's my Partial view:

<div class="container" ng-controller="MyController2">
    <button type="button" class="btn btn-vermelho-1 " ng-click="Buscar()">Buscar</button>
</div>

Button does not call the controller. Is this correct in this way?

    
asked by anonymous 22.01.2018 / 20:14

0 answers