Function
reads (dependentKey) ComputedProperty public
Module: | @ember/object |
---|
Defined in packages/ember-runtime/lib/computed/computed_macros.js:585
import { reads } from '@ember/object/computed';
- dependentKey
- String
- returns
- ComputedProperty
- computed property which creates a one way computed property to the original value for property.
This is a more semantically meaningful alias of computed.oneWay
, whose name is somewhat ambiguous as to which direction the data flows.
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/functions/@ember%2Fobject%2Fcomputed/reads