阅读背景:

Ember:如果找不到,则创建一个新记录

来源:互联网 

I have a route that pulls data from a REST API. The first time a user enters, there won't be any data saved, so I need to create the record with some default values. I figure I need to do this here in the route so the user can see my default values (which in my actual app aren't just null), rather than creating during the I have a route that pulls data from a REST API.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: