Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4836

Active javascript order select after page is loaded

$
0
0

@Alessio_Varalta wrote:

Hi, I have a problem to order my selects in my application. My problem is that i have two languages Italian and German. When I retrieve the date from backend these are in German, so I order these strings.. After I put these strings in view inside the translation tag..So if I have German is not a problem.. The problem is if I have Italian the order is not correct, so I have to reorder the string in base of the language?

1) Solution: Retrieve the data put in select call a function to order the element..but how can i call this function after the view is render?

2)Solution: Retrieve the data, translate the data and order..the problem is when i try to call the language object in the compontent.js i have the error undefined

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles