| Module: | @ember/object |
|---|
Defined in packages/@ember/-internals/metal/lib/property_set.ts:18
import { set } from '@ember/object'; Sets the value of a property on an object, respecting computed properties and notifying observers and other listeners of the change. If the specified property is not defined on the object and the object implements the setUnknownProperty method, then instead of setting the value of the property on the object, its setUnknownProperty handler will be invoked with the two parameters keyName and value.
import { set } from '@ember/object';
set(obj, "name", value);
© 2022 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/4.9/functions/@ember%2Fobject/set