Electron angularjs ui-路由器未加载 ui-在 mac 上查看
Electron angularjs ui-router not loading ui-view on mac
我在 Electron 中有一个在 windows 上完美运行的应用程序,但是当尝试在 mac 上 运行 时,它不会加载第一个 ui-view。也许这是路径问题 cross os?
状态更改、控制台或加载任何文件时没有错误,但 ui- 视图是空的。
文件夹:
app
- js
app.js (angular main)
- views
index.html
root.html
login.html
main.js (electron main)
模板:
<div ui-view="root"></div>
州:
$stateProvider
.state('app', {
abstract: true,
url: '/',
views: {
root: {
templateUrl: '../views/root.html',
},
}
})
.state('app.login', {
url: '',
views: {
content: {
templateUrl: '../views/login.html'
}
}
});
我能够通过从 ui-router 0.2.15 到 0.2.18 来解决这个问题。不确定是哪个错误导致了这个问题。
我在 Electron 中有一个在 windows 上完美运行的应用程序,但是当尝试在 mac 上 运行 时,它不会加载第一个 ui-view。也许这是路径问题 cross os?
状态更改、控制台或加载任何文件时没有错误,但 ui- 视图是空的。
文件夹:
app
- js
app.js (angular main)
- views
index.html
root.html
login.html
main.js (electron main)
模板:
<div ui-view="root"></div>
州:
$stateProvider
.state('app', {
abstract: true,
url: '/',
views: {
root: {
templateUrl: '../views/root.html',
},
}
})
.state('app.login', {
url: '',
views: {
content: {
templateUrl: '../views/login.html'
}
}
});
我能够通过从 ui-router 0.2.15 到 0.2.18 来解决这个问题。不确定是哪个错误导致了这个问题。