dimanche 4 mars 2018

Need Help In loading quick view of pages in AngualrJs

I have a situation where I have to show quick view of pages there are 10-15 pages and they all have their different functionality and their own http request and modals and everything and they load the view when you click on the menu through uri-href now what I have to do is too show a quick view of the pages when user mouse hover on the menu So what I did was create a controller and in that controller I stared copy and paste the http request code of each page, which runs when you click on the menu, to this common controller and run these request on load of the page and a common view in which I copied the html part of page and I set an extra variable for limit so it will get only 5 records on quick view and now where I am stuck is when you will load the page there will be 10-12 http request and some of the pages have button which opens the modal so now I will have to copy the modal and js code for the functionality that implemented on the modal which I dont like so is there any way I can do this without copeing the code to the common files.

Please let me know if you need any help understanding my situation.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2HZcAL0
via IFTTT

Aucun commentaire:

Enregistrer un commentaire