How to realize the keep-alive function of vue in Angualr4

in Vue-router, you can set keep-alive to keep components from being destroyed, which is good for recording user form submissions and multiple filters.

similar requirements are encountered in the angular4 project. Currently, we can only use a large number of caches combined with service as a means to store related content.

I would like to ask if there are relevant tools or ways to build similar functions in angular4.

Thank you


http://sfau.lt/b5V7Fx author: @ cipchk


[hidden] instruction to learn about

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bea1ac-319c4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bea1ac-319c4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?