Currently, I am working on a web application. One of the screens, screen-1, consists of a series of buttons labeled 'Code'. When a user clicks on any of these buttons, it loads a different HTML page, screen-2, in the ng-view using $location.path('path'). Screen-2 features a navigation bar with tabs for 'HTML', 'CSS', 'JS', and 'RESULT', as illustrated in the image. Additionally, there is a collection of HTML files present.
For example:
(1) html1, css1, js1, result1
(2) html2, css2, js2, result2, and so forth.
My objective is to have screen-1 launch screen-2 with the 'HTML' tab active when button-1 is clicked. Furthermore, it should display the code from the 'html1' file on this tab, along with showcasing the respective code and results on other tabs.
Please refer to the image below for a visual representation of the described scenario.