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

Query parameter off model attribute

$
0
0

@bmurphy wrote:

Hello,

Been trying to clean up my code with how I’m handling a query parameter on my controller and thinking there’s a better way. I have an attribute selectedLocation which is either null or a ref to an Ember Data object. I want a query parameter location tied to the selectedLocation’s ID. I’ve gotten this working in the past but it required lots of boiler plate to get it working using a setter and getter plus other stuff. Docs don’t appear to touch on this but it “feels” like something we ought to be able to do. Anyone have experience doing this? Maybe I’m just missing a simple pattern…

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles