我已經安裝了由離子這樣:爲什麼angularjs路由器不在這裏工作?
npm install ionic
ionic start hello blank
cd hello
ionic platform add android
ionic build android
ionic serve
它可以完美運行。
然後我試圖嘗試編譯這段代碼:http://codepen.io/ionic/pen/odqCz
我只是複製並粘貼在index.html的HTML和在app.js的JS,我已經添加腳本標記的HTML。但我的控制檯出現以下錯誤,並且不顯示頁面:
GET http://code.ionicframework.com/1.0.0-beta.12/js/performance-now.map 404 (Not Found) (index):158
GET http://192.168.1.136:8100/contact.html 404 (Not Found) ionic.bundle.js:15978
GET http://192.168.1.136:8100/nav-stack.html 404 (Not Found) ionic.bundle.js:15978
GET http://192.168.1.136:8100/about.html 404 (Not Found) ionic.bundle.js:15978
GET http://192.168.1.136:8100/facts2.html 404 (Not Found) ionic.bundle.js:15978
GET http://192.168.1.136:8100/facts.html 404 (Not Found) ionic.bundle.js:15978
GET http://192.168.1.136:8100/sign-in.html 404 (Not Found) ionic.bundle.js:15978
GET http://192.168.1.136:8100/home.html 404 (Not Found) ionic.bundle.js:15978
GET http://192.168.1.136:8100/tabs.html 404 (Not Found) ionic.bundle.js:15978
GET http://192.168.1.136:8100/forgot-password.html 404 (Not Found) ionic.bundle.js:15978
GET http://192.168.1.136:8100/sign-in.html 404 (Not Found) ionic.bundle.js:15978
這是怎麼回事?爲什麼在我的codepen正在工作,我的本地主機不正確地解釋angularjs的假urls?
你加所有的模板爲好,因爲它說404的腳本模板在這裏 – V31 2014-09-19 17:47:10