It's me ;-)

AngularJS ng-view problem on Firefox

By default, multiple ng-view is not supported by AngularJS. Assume that we have some pages with different layout as the code bellow:

As you can see, we have 3 ng-view directive and use ng-switch to decide which layout will be used. When running on Chrome browser, everything is fine. AngularJS uses only one ng-view (which matched with ng-switch-when). But on Firefox, the data will be put to all ng-view, but only the div which matched with ng-swith-when is shown (the other is hidden), it also sends as many request as ng-view has, too.

Currently I cannot find the solution for this case so I reorganized the HTML to use only one ng-view:

Leave a Reply

Your email address will not be published.