How can I create arrays inside component where I can push some keys when this component is called via template and then reuse this arrays for taking decisions to show something or not.
You may want to be a little more specific if this doesn’t answer your question but I’ll give it a shot…
and then reuse this arrays for taking decisions to show something or not
This line says “service” to me. Create a service and have an array on the service. Inject the service in the component and let the component add/remove items either directly or by service method (called in an action handler). Then you can inject the service anywhere you need to do the “decisions to show something or not”.
If that’s not what you were going for please describe your use case a little more and we can come up with something else.