怎么调用angular项目打包后的主文件?
用angular1.5写了个网页应用,用gulp打包后有一个index.html入口。现在有一个轻量的单独html文件:home.html 用作主页。现在想要在home.html里调用angular页面,于是给了index.html的地址链接,但是这个链接打不开,请问是怎么回事?
一般把打包后dist文件拖到服务器就能跑了,但是单独运行index.html不行,求解答。
index.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>main</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<base href="/">
<link href="assets/css/style.css?5e876a5d0e7c1820bd84" rel="stylesheet"><link href="styles.css?5e876a5d0e7c1820bd84" rel="stylesheet"></head>
<body ng-app="cmp-ng-testweb" ng-cloak>
<app>
Loading...
</app>
<!-- Google Analytics: change UA-71073175-2 to be your site's ID -->
<script src="app.bundle.js?5e876a5d0e7c1820bd84"></script><script src="vendor.bundle.js?5e876a5d0e7c1820bd84"></script></body>
</html>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论