Trushar Tandel Trushar Tandel - 4 months ago 37
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.


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