Example: Passing an Argument and the Event Object with a Method

In this example we see that it is possible to send both the event object and a text as an argument with a method. To do this we must use the reserved name for event methods: '$event'.

Click on the tiger image:

Here is the message sent with the method, and the id of the img tag:

"{{ msgAndId }}"