简体   繁体   中英

Angular2 How to go back in a RouteConfig

I made a simple test to practice the RouteConfig feature and I don't know how to go back to the main component from the children component. My plunker is:

plnkr.co/edit/25DCfUADQZJb2XMjb0hW?p=preview

Thanks in advance!

I think it may help you. Just try it.

this._location.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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM