In the Component1 i send the Data to Component2
in Component2 i become the DataObject in the @Input
then i can show the Data in the View of Component2
this works and i can see all the Data....
this means the Data comes ok to the Component2
but now i want this DataObject where i become in the @Input first give to a Pager Function
to show only the Data from the Pager --- shows only 10 Items ... like this...
and for this i must give the DataObject where i from the Component1 to Component2 > @Input
to my Pager Function to manipulate them first before i show the filtered Data from the Pager in the View!
and my Problem is now to become this DataObject from the @Input in another Dataobject
like this mynewObject = Object from where i become from the @Input !!
i become always undefined back!!!!!!
i think the Problem is somewhere where i want to bring the Data in my new Array of DataObjects...
i think at this Point the Object is not accesible ?
I test this in the ngOnInit()....
but when i say there myArraywithnewData = myArraywhereIBecomeFromThe@Input
i become always undefined back!!!
a.. i become some Array of DataObjects from Component1 to Component2 via the @Input
and then i want to take this Array with DataObjects in Component2 and save them in a new Array of Dataobjects to work with them first (filter)
before i show the manipulated Data in the View....
i think the Problem is someone in the Lifecycle or i must someone wait until the Data loaded finish before i can bring
them in a new Array...
i hope now you can understand what i want
Thanks
Benny