Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用AngularJs 問題 #26

Open
z0890142 opened this issue Jul 1, 2017 · 0 comments
Open

使用AngularJs 問題 #26

z0890142 opened this issue Jul 1, 2017 · 0 comments

Comments

@z0890142
Copy link

z0890142 commented Jul 1, 2017

目的

希望使用AngularJs 當作前端

遇到的問題

因為剛接觸express
上網爬文看到在express的app.js檔案裡使用
app.get('/', function(req, res) {
res.sendfile('./views/p1.html'); // load the single view file (angular will handle the page changes on the front-end)
});
這句可以讓node.js連接上我所編輯的AngularJs ,可是不知道為什麼我設了都沒有作用,如果我public的資料夾裡有index.html這個檔案他就會跑這個檔案,如果沒有她就會跑隨著專案產生的index.jade,我想請問一下是哪裡出了問題

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant