Javascript 离子含量不呈色

Javascript 离子含量不呈色,javascript,angularjs,ionic-framework,angular-ui-router,ionic,Javascript,Angularjs,Ionic Framework,Angular Ui Router,Ionic,我正在尝试在Ionic中获得一个非常基本的页面渲染,但除了显示一个白色页面外,似乎什么也看不到 index.html: <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="vendor/ionic.min.css"> <title>IoT Launch</title> &l

我正在尝试在Ionic中获得一个非常基本的页面渲染,但除了显示一个白色页面外,似乎什么也看不到

index.html:

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="vendor/ionic.min.css">
        <title>IoT Launch</title>
        <script type="text/javascript" src="vendor/vendor.js"></script>
        <script type="text/javascript" src="js/bundle.js"></script>
        <script type="text/javascript" src="cordova.js"></script>
    </head>
    <body ng-app="iot-launch">
        <ion-nav-view></ion-nav-view>
    </body>
</html>
js/views/deviceList.js:

module.exports = angular.module('iot-launch.views.deviceList', [
    'ionic'
])

.config(['$stateProvider', function($stateProvider) {
    console.log('In deviceList config');
    $stateProvider
        .state('iot-launch.deviceList', {
            url: '/',
            template: '<ion-view title="hello"><ion-content>Hello</ion-content></ion-view>'
        });
}])

.name;
module.exports=angular.module('iot-launch.views.deviceList'[
“爱奥尼亚”
])
.config(['$stateProvider',函数($stateProvider){
log('In deviceList config');
$stateProvider
.state(“iot-launch.deviceList”{
url:“/”,
模板:“你好”
});
}])
名称
当我用模板的内容替换
时,它会在页面上呈现(即显示Hello)。控制台中出现的唯一语句是deviceList配置中的语句,因此$stateProvider代码似乎正在被调用


我认为
$urlRouterProvider.other(“/”)
,具有
物联网启动.deviceList
状态,url为
/
,在主html文件中使用
会导致
iot launch.deviceList中的模板出现在
出现的地方。

我注意到我没有定义
iot launch
状态,这显然是
iot launch.deviceList
状态工作所必需的。从状态名称中删除
.deviceList
或定义
物联网启动
状态似乎可以解决此问题。缺少错误消息非常严重。

console中有错误吗?除了deviceList config中的
之外,没有错误或其他日志记录语句
module.exports = angular.module('iot-launch.views.deviceList', [
    'ionic'
])

.config(['$stateProvider', function($stateProvider) {
    console.log('In deviceList config');
    $stateProvider
        .state('iot-launch.deviceList', {
            url: '/',
            template: '<ion-view title="hello"><ion-content>Hello</ion-content></ion-view>'
        });
}])

.name;