用于暂存当前路由状态,在下次回到此路由时无需重新初始化组件
Run npm install to install the node_modules.
Run ng build to build the project. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
RouteReuseStrategy ( CLASS ) API (https://angular.io/api/router/RouteReuseStrategy).