I'm using Angularjs for my SPA project. So far, I'm managing to get what I want. Still, I'm failing to get MODALs to work and I really need a FOR DUMMIES explanation how to do it. Here are some details about my project structure: 1) Each and every page/view is held in a separate physical file (pure HTML), 2) For each page/view a controller is defined (again, each controller in its own physical file), 3) I have defined a route provider that includes an entry for each page/view.
The trigger for opening modal dialogs may take place from several locations, some of them opening the same dialogue, and it would come from clicking on a link (<a>Click here</a>
like), buttons, or just intercepting click on input fields.
I should add that, when presenting the "to-be" modals as normal pages (i.e. adding them to the route provider list), I can see the contents properly.
My last attempt was following the example here with no success.
What I need is: 1) How and where should I configure these modals (looked at many examples, and right now I'm completely lost)?, 2) How should I invoke the presentation of a dialogue?
Since I'm far from being an expert in Angularjs, a detailed explanation with some TODOs list would be highly appreciated.
Thanks.