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

Where to validate query params

$
0
0

@accelerate wrote:

Where is the appropriate place to validate query params? I basically want to check if a query param is valid, and if not, set it to a default value. I had assumed it would be in the Controller's init(), but when I look up my params there, all I get is the default values I had set. Is there another lifecycle hook I could use in the Controller, or am I supposed to do it in the accompanying route?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles