I am working on a large angular application where a modal say address details is used in many views. For ease of maintaining it , I have separated the modals in views and created a new directory for modals and changed the view controller's 'templateUrl' to that location (The view controller performs the function of modals and non-modals stuff). Now, There are many controllers which perform the modal functions and many views that call the same modal. For ease of maintenance I was thinking to make a separate modal controller. What's the best approach for it?Make one big controller like 'ModalController' which will have all have all the modal functionalities for every modal or make a separate controller which can only perform a particular modal functionality , like addressModalController and so on?
Best approach for constructing angular-ui Modals?
mvc;coding standards;angularjs