What is safe method to perform `Object.assign` when using AngularJS? -


basically perform object.assign copy of data, without angularjs attached in past, attaches now, or may attach in future versions.

sure can delete such property $$hashkey after assignment approach totally fragile, on other hand manually construct object fields want on other hand tiresome (and fragile if change definition of source object).

is there solid in between?

there no other properties $$hashkey, 1 of kind.

all of angular object helpers are aware of property , remove @ end of operation. angular.extend direct angular counterpart of object.assign , should used instead.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -