A
A
Alexey Pavlov2014-06-22 20:12:34
Angular
Alexey Pavlov, 2014-06-22 20:12:34

Angular.js How to change template without changing url?

There is a main page with a list of some items. Under the header there is a login form. There is a register button at the bottom of the form. When you click on the last button, the login form should redraw to the registration form. This could be easily done with routing, but it needs to be done without changing the url. I feel that this should be implemented quite elementarily, but so far there is not enough experience to understand this.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2014-06-22
@joseperez

Store in some $scope property what form should be shown and do ng-show forms by the value of this property?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question