ember.js - Ember - using api/server data -


i new ember , see far. have done tutorial , found to pretty easy , running. question has using mirage vs real data. used mirage stub in data link to real data. think should not hard since have models..etc set need call api instead of mirage. have not seen clean example of how best this.

thanks

you can turn mirage on/off requests per environment in config/environment.js e.g. off development, on testing,

// config/environment.js  if (environment === 'development') {   env['ember-cli-mirage'] = {     enabled: false   }; }  if (environment === 'test') {   env['ember-cli-mirage'] = {     enabled: true   }; } 

or if leave mirage on everything, allow specific endpoints passthrough:

http://www.ember-cli-mirage.com/docs/v0.3.x/configuration/#passthrough


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -