且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

路径匹配的angular2路由问题

更新时间:2021-10-16 17:27:51

好吧,我想您现在应该已经找到答案了,但是这里是您如何检查系统上安装了哪个版本的路由器的

Okay I guess you should have found the answer by now, but here is how you can check which version of router is installed on your system

进入node_modules文件夹,然后进入@angular,然后进入路由器

Go into node_modules folder and then into @angular, and into router

node_modules/@ angular/router
├──README.md
├──包
├──index.d.ts
├──index.js
├──index.js.map
├──index.metadata.js enter code here
上 ├──package.json< -----------此文件应告诉您版本
├──src

node_modules/@angular/router
├── README.md
├── bundles
├── index.d.ts
├── index.js
├── index.js.map
├── index.metadata.jsenter code hereon
├── package.json <----------- This file should tell you the Version
├── src

希望您的问题得到解决. 谢谢.

I hope your problem was solved. Thanks.