账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    怎么调用angular项目打包后的主文件?
    47
    0

    用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>
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 月牙笑眼 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部