1
我通过以下this link将我的angular 2应用程序发布到了azure web应用程序中。之后,当我浏览网页应用程序URL时,我面临着zone.js文件中的许多问题,并且当我刷新我的网络应用程序URL时,我得到了不同的错误。如何将角度2应用程序发布到Azure Web应用程序中?
有关我的问题的更多信息,请参阅下图。
但我的应用程序工作在我的本地机器有任何问题。这是我在index.cshtml写的代码
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Todo List Angular2 Sample</title>
<link href="app/app.component.css" rel="stylesheet" />
<link href="node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet" />
<link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
<!-- Secure Hash Algorithm -->
@*<script src="js/jsSHA-master/src/sha.js"></script>*@
<script>
window.config = {
apiBaseUrl: '@System.Configuration.ConfigurationManager.AppSettings["toDoListAPIURL"]'
};
</script>
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<!-- Configure SystemJS -->
<script src="systemjs.config.js"></script>
<script>
System.import('app').catch(function(err){ console.error(err); });
</script>
</head>
<body>
<my-app>Loading AppComponent content here ...</my-app>
</body>
</html>
能否请你告诉我如何解决这些问题,并告诉我如何发布到蔚蓝的web应用程序的角度2应用程序?
-Pradeep
它看起来像服务器是在这里责怪。我访问了该页面,每次都会得到不同的结果。您需要查看服务器是否限制了它所响应的请求的数量或某种性质。 –
当我将我的角度应用程序发布到天蓝色的网络应用程序中时,我仍然同样面临同样的问题。 – pradeep
无法重现。请使用您遇到的新错误更新您的问题。 –