I am developing an application which has menu icons on each page depending on what page it is.
Basically there are 15 menus.
- Filter
- Sort
- Save search result
- Delete saved search
- Share saved search
- Feedback saved search
- Save program
- Delete program
- Share program
- Feedback on program
- Sort on offline search result
- Remove offline saved search
- Share on offline saved search
- Remove offline program entry
- Share offline Program entry
In order to make this work, I check which is the current page and perform some calculations either to display or hide the icons. Previously i called ng-show=“functionname()” , as this ended up in a very slow application i changed the function call to true /false check of a variables inside ng-show.
The question is , is there a better approach for the dynamic menu icons?
Now the true/false checking is done in my appController globally.
Now another issue is the page loads first before actually the menu icon loads. So the the title of the page is already placed before the menu actually shows up. When the menu is shown, it overlaps over the title.
Please see the screenshot.enter link description here
Thanks
Anusree