How to manage a single-page Chrome app with multiple views (or sections)

I started developing a Chrome app to test it. It seems that such applications (desktop applications at the end) should be designed with one page in mind.

But my application consists of three pages or β€œsections”: one for controlling a webcam, the other for viewing streaming and the last for controlling video conferencing.

I read and encoded a bit in the Chrome platform’s development center, and just could find the basic guides with one .html page.

So my question is: what's the best way to load different .html pages (because I need to show different sections of the user interface) in a Chrome app? I saw that Google uses AngularJS to implement the MVC pattern, but I don’t know how to go from one view to another (thinking of views as .html pages) in this scenario (because I never used AngularJS).

Thank!

+4
source share
1 answer

Is there a specific reason you need multiple HTML pages? It is very simple to do something like this:

<html>
  <body>
    <div id="tab_1">Section One</div>
    <div id="tab_2">Section Two</div>
    <div id="tab_3">Section Three</div>
  </body>
</html>

/ div , . CSS-, Bootstrap, , , div , .

0

Source: https://habr.com/ru/post/1543219/


All Articles