readOnlyEmber.ComputedProperty
public
Call on a computed property to set it into read-only mode. When in this mode the computed property will throw an error when set.
let Person = Ember.Object.extend({ guid: Ember.computed(function() { return 'guid-guid-guid'; }).readOnly() }); let person = Person.create(); person.set('guid', 'new-guid'); // will throw an exception
Please login to continue.