我是離子框架中的新手。我已經安裝了所有使用離子盒的功能(如http://therockncoder.blogspot.com.br/2014/10/getting-started-building-mobile-apps.html所示),但是我的離子服務未運行。實時重載運行但離子服務不
下面我顯示有錯誤的瀏覽器:
在這裏,我的命令,顯示出現場重裝工作。我更改了index.html中的任何內容,並顯示一條消息,告知該網站已更改。
這裏是我的index.html文件,沒有任何變化:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
<link href="css/ionic.app.css" rel="stylesheet">
-->
<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
<!-- your app's js -->
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script src="js/services.js"></script>
</head>
<body ng-app="starter">
<!--
The nav bar that will be updated as we navigate between views.
-->
<ion-nav-bar class="bar-stable">
<ion-nav-back-button>
</ion-nav-back-button>
</ion-nav-bar>
<!--
The views will be rendered in the <ion-nav-view> directive below
Templates are in the /templates folder (but you could also
have templates inline in this html file if you'd like).
-->
<ion-nav-view></ion-nav-view>
</body>
</html>
我做了這些步驟,安裝後一切:
- 流浪漢SSL
- CD/projects(我的項目文件夾中有這個名字)
- 個離子開始PROJECT_NAME_HERE標籤
- CD PROJECT_NAME
- 離子服務
我也曾嘗試以下步驟:
- 流浪漢SSL
- CD /項目(我的項目文件夾中有此名)
- 離子式開始PROJECT_NAME_HERE標籤
- cd PROJECT_NAME
- 離子平臺添加的Android
- 離子服務
而且我自己也嘗試命令「離子地址」到2個網址選項(本地主機與IP地址)之間進行切換。他們兩人都有同樣的問題。
我在做什麼錯?
謝謝。
你有沒有嘗試過:HTTP://本地主機:8100 /#/ – aorfevre
您使用的是最新版本的離子型?你可以輸入:'ionic -v'來檢查你的cmd。如果沒有更新:'npm install -g ionic'並通過執行項目根目錄中的'ionic lib update'來更新項目中的離子庫。 – QueryLars