I am facing some issues with navigation back to previous page. What I am trying to do is in a cancel-button click I am calling a function where I am using history.back();
which is working fine. The problem is that the same page is having some validation so when I am clicking the cancel-button it is checking all the fields and then it is navigating back.
I also used history.go(-1)
getting same issue. I even tried app.navigate("details/");
which is working fine but it is coming in loop. For example: if I am navigating back to page 2 from page 3 its working but when I am trying to navigate from page 2 to page 1 its coming back to page 3.
Can someone please help me figure this out.
Adapted to http://js.devexpress.com/Documentation/Guide/SPA_Framework/Navigation_and_Routing/?version=15_2 you can also navigate back like this:
Application1.app.navigate('View1', { root: true });
// or
Application1.app.navigate('View1', { target: 'current' });
Hope this helps.
您可以使用back方法 。
Application1.app.back();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.