Can I put a controller inside another in html?

0

Let's suppose that my site made in AngularJS has a ng-include of a modal (a part of the screen that floats) I can define a controller in this HTML file to control the part that will be included even if I already have a controller before the include ?

    
asked by anonymous 26.07.2018 / 21:08

1 answer

0

For the specific mode, you can use the angular-ui-bootstrap ( link ) , where you can call modals with templates and controllers as you wish.

For other templates, which are common in your application, I suggest creating policies (with their templates and controllers) and these autonomous in their operation.

    
01.08.2018 / 04:16