I have just started using ember js and I tripped over this function a lot of times Could someone brief about the use of this._super() and also explain the importance of ...arguments Thanks
You need this, whenever you are overriding classes/functions (e.g. didReceiveAttrs
in a component). It makes sure, that important functions of your parent are called that you might not be aware of.
The ...arguments
parameter is a basic javascript approach to encapsulate a number of (optional) parameters that the super function might need...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With