Function
setProperties (obj, properties) public
Module: | @ember/object |
---|
Defined in packages/@ember/-internals/metal/lib/set_properties.ts:6
import { setProperties } from '@ember/object';
- obj
- properties
- Object
- returns
- properties
Set a list of properties on an object. These properties are set inside a single beginPropertyChanges
and endPropertyChanges
batch, so observers will be buffered.
import EmberObject from '@ember/object'; let anObject = EmberObject.create(); anObject.setProperties({ firstName: 'Stanley', lastName: 'Stuart', age: 21 });
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/functions/@ember%2Fobject/setProperties