javascript - Ember.js external json for Store -
i have json file lives on on server hosting ember.js app. want use json "store" app (it reading). i'm not sure best way this. need use restadapter hit file, or somehow use external fixtureadapter, or there other way accomplish this?
your best bet use fixture adapter described here. if file static, can add page script tag , done it. if file changes per user, you'll have write server-side logic generate it. if that's case, append html file self executing function or something. either way, if data isn't changing, fixtureadapter best bet. don't want have mess restadapter or trying write own.
Comments
Post a Comment