【问题标题】:NodeJS/AngularJS unable to display information on WebpageNodeJS/AngularJS 无法在网页上显示信息
【发布时间】:2017-07-16 04:49:02
【问题描述】:

我正在关注 NodeJSAngularJS (v 1.2.x) 应用程序 tutorial 通过 Windows 上的 Ubuntu 上的 Bash。

问题:

  1. 在 Ubuntu bash shell 中未显示日志“我收到了我请求的数据”

  2. 网页上不显示信息

结果和代码:


Ubuntu Shell 结果:


网页


Controller.js


Server.js


Index.js

【问题讨论】:

    标签: javascript angularjs node.js bash ubuntu


    【解决方案1】:

    您的tr 中有一个空格

    改成<tr ng-repeat "contact in contactlist">

    【讨论】:

      【解决方案2】:

      Index.html 中多了一个空格,ng-repeat="contact in contact list"
      应该是ng-repeat="contact in contactlist"

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-08-18
        • 2019-12-22
        • 2014-12-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-05-16
        • 1970-01-01
        相关资源
        最近更新 更多