jeudi 14 décembre 2017

When to clone angular data objects?

Are their any Angular rules/best practices about when to clone or not objects returned by the service.

Sharing same data object reference upon all components may cause unexpected behaviors (eg: template based form that uses object reference may cause object property change before submit)

Aucun commentaire:

Enregistrer un commentaire