Trushar Tandel Trushar Tandel - 1 year ago 75
AngularJS Question

how to show hide multiple pages in angularjs in single section

I have 3 pages 1.html, 2.html and 3.html and having 3 different buttons button1, button2 and button3. On button1 click i want to show 1.html and on button2 2.html and so on. how can we achieve this in angularJs. Thanks.

Answer Source

You can use ng-include to achieve this, move your html to script tags and change ng-include values on button click Here is the example tutorial

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download