Quantcast
Channel: Forum Pasja Informatyki - Najnowsze pytania
Viewing all articles
Browse latest Browse all 65321

Uncaught SyntaxError: Unexpected end of input

$
0
0

Witam w konsoli błędów wyskakuje taki błąd jak w tytule.

Kod HTML:

<tbody>
   <tr data-ng-repeat="element in list">
      <td data-nd-bind="element.title"></td>
      <td data-nd-bind="element.autor"></td>
      <td data-nd-bind="element.date"></td>
   </tr>
</tbody>

A w kodzie js to:

var app = angular.module('app', []);
  app.controller('Ctrl', ['$scope', function ($scope)
  {
      $scope.list = [
      {title: "l", autor: "l", date: "l"},
      {title: "l", autor: "l", date: "l"},
      {title: "l", autor: "l", date: "l"},
      {title: "l", autor: "l", date: "l"},
      {title: "l", autor: "l", date: "l"}
    ];
 }

I zanim tabeli wyskakuje błąd ;)


Viewing all articles
Browse latest Browse all 65321

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>