Thank you @chasen,
The reason is the following: in situations where I have to include third parties libraries that process data asyncronously and that are configured to call a global function (callback) when they end, I don't find another way to bind a Map attribute or a Component viewModel to the result of the computation.
My approach is to bind a custom attribute to the element and change it programmatically using the callback to track the result event of the external conputation.
An example could be googlemaps API when using the
async defered mode:
<script async defer
when the callback method is called when the API js is fully loaded.
In general, I use the scope writing a proper parent/child structure with the Components view (and viewModel) but in this case I cannot find other ways.
Are there other possible solutions?