我是离子框架的新手。我已安装所有功能以使用离子盒(显示在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>
安装好所有东西后,我完成了这些步骤:
我也尝试过这些步骤:
我还尝试了命令&#39;离子地址&#39;更改2个url选项(localhost和ip地址)。两者都存在同样的问题。
我做错了什么?
感谢。
答案 0 :(得分:2)
试试这个:
离子发球 - 地址0.0.0.0