mardi 5 mai 2015

Angular - "No results" for a table

Was wondering if there is a simple way to have Angular show "No results"

For example:

<table>
  <thead>
    <tr><td>First Name</td><td>Last Name</td></tr>
  </thead>
  <tbody>
    <tr><td>Jonny</td><td>Bizzle</td></tr>
  </tbody>
</table>

Would become something like:

<table>
  <thead>
    <tr><td>First Name</td><td>Last Name</td></tr>
  </thead>
  <tbody>
    <tr><td colspan="2">No results</td></tr>
  </tbody>
</table>

If say $http.get() returns no names

Aucun commentaire:

Enregistrer un commentaire