The page opens as follows
Click the computer link and the url path will be displayed as follows
After clicking
The expected effect is as follows:
My code is as follows app.js, using "express": "^4.15.2"
var express = require('express'); var path = require('path'); var app = express(); //使用静态文件服务器中间件 app.use(express.static(path.join(__dirname,'app/public'))); app.listen(8080);
test.html
AngularJS 路由实例 - 菜鸟教程
AngularJS 路由应用
I have been stuck on this problem for a long time, please give me some direction, thank you
This is the default ! (exclamation mark) added to the hash route by angular1.6, causing an error. The modification method is as follows (add configuration, remove the default prefix exclamation mark):