I already know some of the places I have to use @reflectable in like this
@property String get name Band =>_nameBand;
@reflectable void set nameBand(val) {
_nameBand = val;
notifyPath('nameBand', _nameBand;
}
And for events triggered by, say, clicking an element.
<paper-button on-click="clicked"></paper-button>
Inside the elements class definition where you define the event handler method that you want to be called on the on-click event.
...
@reflectable
void clicked([_, __]) {
...
}
And without the @reflectable annotation, Polymer won't be able to find either the setter or the method you want to be used whenever the paper-button is clicked. Why is @reflectable needed, as in, what is its purpose?
I realise I seem to be answering my own question, but I would love some clarification. Thanks.