You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
Many times we need to store data related to systems internally, a good practice to avoid storing data on the systems could be to use singleton components and add some syntactic sugar for that:
it will create a singleton component named systemA (As if we had previously created a SystemA component with valueA and valueB attributes).
And we could access the component from within the system by referencing this.component:
execute(){this.component.valueA+=2;}
The text was updated successfully, but these errors were encountered:
Many times we need to store data related to systems internally, a good practice to avoid storing data on the systems could be to use singleton components and add some syntactic sugar for that:
If we create a system in this way:
it will create a singleton component named
systemA
(As if we had previously created aSystemA
component withvalueA
andvalueB
attributes).And we could access the component from within the system by referencing
this.component
:The text was updated successfully, but these errors were encountered: