Function
setProperties (obj, properties) public
Module: | @ember/object |
---|
Defined in packages/ember-metal/lib/set_properties.js: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.
let anObject = Ember.Object.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/2.18/functions/@ember%2Fobject/setProperties