Class Model
public
Extends:
Ember.EmberObject
Defined in:
../model/addon/-private/model.js:91
Module:
@ember-data/model
Base class from which Models can be define.
import Model, { attr } from '@ember-data/model';
export default class User extends Model {
@attr name;
}
Methods
- belongsTo
- changedAttributes
- deleteRecord
- destroyRecord
- eachAttribute
- eachRelatedType
- eachRelationship
- eachTransformedAttribute
- hasMany
- inverseFor
- reload
- rollbackAttributes
- save
- serialize
- toString
- typeForRelationship
- unloadRecord
Properties
- adapterError
- attributes
- dirtyType
- errors
- fields
- hasDirtyAttributes
- id
- isDeleted
- isEmpty
- isError
- isLoaded
- isLoading
- isNew
- isReloading
- isSaving
- isValid
- modelName
- relatedTypes
- relationshipNames
- relationships
- relationshipsByName
- store
- transformedAttributes
Events
No documented items