Reputation: 65
I want to create Ids for newly created ember data records on the client side.
What is the recommended way to to this?
Upvotes: 0
Views: 1044
Reputation: 1220
Update of the link to Ember.guid()
in comment above. Ember v3.4 API
Import it from Ember's internals as follows:
import { guidFor } from '@ember/object/internals';
Upvotes: 1