Dueños
@@ -90,16 +90,16 @@
Búsqueda por categoría: {{ typeInput[1] }}
[src]="cat.images[0]"
width="60">
-
{{ cat.title }}
- {{ cat.author }}
- {{ cat.language }}
+ {{ cat.title | titlecase }}
+ {{ cat.author | titlecase }}
+ {{ cat.language | titlecase }}
Venta-Intercambio
{{ cat.transaction }}
${{ cat.price }}
${{ cat.price }}
Otras categorías a las que pertenece
- {{ genres }}
+ {{ genres | titlecase }}
diff --git a/src/app/pages/search/search.component.ts b/src/app/pages/search/search.component.ts
index 46beb8d..33cb1f7 100644
--- a/src/app/pages/search/search.component.ts
+++ b/src/app/pages/search/search.component.ts
@@ -71,15 +71,17 @@ export class SearchComponent implements OnInit {
searchOwner(users:any[], search:string) {
console.log(users);
let owners = [...users].filter( data => {
-
+ if( data.name.indexOf(search.toLowerCase()) >= 0 ) return data;
});
+
+ console.log(owners);
- for( let user of users ){
- let owner = user.name;
- if( owner.indexOf(search.toLowerCase()) >= 0 ) {
- owners.push(user);
- }
- }
+ // for( let user of users ){
+ // let owner = user.name;
+ // if( owner.indexOf(search.toLowerCase()) >= 0 ) {
+ // owners.push(user);
+ // }
+ // }
return owners;
}
diff --git a/src/app/register/register.component.html b/src/app/register/register.component.html
index aa61205..01c109e 100644
--- a/src/app/register/register.component.html
+++ b/src/app/register/register.component.html
@@ -36,7 +36,7 @@
Datos de perfil