Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Inconsistent defaultValues behavior. #324

Closed
@facultymatt

Description

@facultymatt

jsData 2.9.0
Angular 1.5.3

When defining a resource, its possible to set defaultValues, as documented here:http://www.js-data.io/docs/dsdefaults#defaultvalues

This only works when callingDS.createInstance(). Why not also apply defaults inDS.inject()? I would expect that any method which injects, creates, etc. a new instance of a model applies the defaultValues.

Secondly, the documentation for createInstance incorrectly notesoptions.defaults seehttps://github.com/js-data/js-data/blob/v2/src/datastore/sync_methods/index.js#L153

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp