2016-04-12 18 views
0

Ich bin nicht in der Lage, Frage zu stellen. Bitte beachten Sie den beigefügten Screenshot für den Fehler.Uncaught TypeError: Kann die Eigenschaft 'mData' von undefined nicht lesen

enter image description here

<table> 
    <tr ng-repeat="num in numbers"> 
    <td> {{num.number}} </td> 
    <td> {{num.short_description}} </td> 
    <td> {{num.category}} </td> 
    <td> {{num.subcategory}} </td> 
    <td> {{num.priority}} </td> 
    <td> {{num.urgency}} </td> 
    </tr> 
</table> 
+0

Bitte siehe unten meinen Code. – Harish

+0

\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t – Harish

+0

\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t
Anzahl Kurzbeschreibung Kategorie Unterkategorie Priority Dringlichkeit
{{}} num.number {{}} num.short_description { {num.category}} {{num.Unterkategorie}} {{}} num.priority {{}} num.urgency
Harish

Antwort

1

Datentabelle erfordert Tabelle HTML in der richtigen Format, mit <thead> und <tbody> auch Anzahl der <th> und Anzahl der <td> in allen Zeilen entsprechen sollte. (Aber colspan kann in Header verwendet werden) HTML Versuchen -

<table class="table table-striped" id="my_incidents_details" border="1"> 
     <thead> 
       <tr> 
         <th>Number</th> 
         <th>Short Description</th> 
         <th>Category</th> 
         <th>Sub Category</th> 
         <th>Priority</th> 
         <th>Urgency</th> 
       </tr> 
     </thead> 
     <tbody>      
      <tr ng-repeat="num in numbers"> 

       <td> {{num.number}} </td> 
       <td>{{num.short_description}}</td> 
       <td> {{num.category}} </td> 
       <td> {{num.subcategory}} </td> 
       <td> {{num.priority}} </td> 
       <td> {{num.urgency}} </td> 

              </tr> 
      </tbody>         
</table> 
+0

Dieser Trick hat funktioniert. Danke Ihnen allen für Ihre Hilfe. Wie man es als korrekte Antwort markiert? – Harish

+0

@Harish - http://stackoverflow.com/help/someone-answers – sid

Verwandte Themen