Skip to content

Commit

Permalink
Filtros
Browse files Browse the repository at this point in the history
Ahora se pueden filtrar los resultados de contactos
  • Loading branch information
axul committed Mar 3, 2015
1 parent f4c6c75 commit bdeef6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ <h1>{{principal.tituloApp}}</h1>
<h2>Lista Contactos</h2>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<input type="text" ng-model="busqueda" class="form-control" placeholder="Filtrar resultados">
</div>
</div>
<table class="table table-hover table-striped table-clickable">
<thead>
<tr class="row">
Expand All @@ -32,11 +37,11 @@ <h2>Lista Contactos</h2>
</tr>
</thead>
<tbody>
<tr ng-repeat="contacto in contactos.contactosArray" class="row">
<tr ng-repeat="contacto in contactos.contactosArray | filter:busqueda" class="row">
<td class="col-xs-3" ng-bind-html="contacto.thumb"></td>
<td class="col-xs-3">{{contacto.nombre}}</td>
<td class="col-xs-3">{{contacto.apellido}}</td>
<td class="col-xs-3">{{contacto.contacto}}</td>
<td class="col-xs-3"><a target="_blank" ng-href="https://twitter.com/{{contacto.contacto}}">{{contacto.contacto}}</a></td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularfromstrach",
"version": "0.2.0",
"version": "0.3.0",
"dependencies": {
"respond": "~1.4.2",
"es5-shim": "~4.0.5",
Expand Down

0 comments on commit bdeef6a

Please sign in to comment.