You will find our very own gesture imports, however, other than that we are posting Function to allow us to rating a reference to the servers element (and therefore you want to mount the motion so you’re able to). We are along with importing Knowledge and you may EventEmitter so as that we are able to generate a conference that can easily be listened to possess in the event that associate swipes proper or remaining. This would help us fool around with our component in this way:
step 3. Explain the brand new Motion
Now we’re entering new key out-of what we is building. We are going to establish all of our motion and the actions that we require so you can trigger whenever you to gesture goes. We will earliest range from the code as a whole, therefore we have a tendency to focus on the fascinating bits in detail.
This new () decorator will give united states that have a mention of machine element of the component. Leer más