Bazyli Brzóska
Bazyli Brzóska
Hey guys. I just found out about this loader. I've recently written something very similar, although it doesn't prepend `require(yourDependency)` to code, but appends `require.include(yourDependency)` so that Webpack only adds...
Awesome, thanks @jdanyow! I've tried doing the refactor myself (looking at the code of aurelia-binding to match), but without any success, there's no documentation and deciphering it all turned out...
@jmealo As a pretty good workaround, if you want to bind to Promises you can do something like this: https://gist.run/?id=bd1ee888a9311027156b29b7df6ac27e Above code is inspired by @jods4's proposition from [here](https://github.com/jdanyow/aurelia-async/issues/3#issuecomment-184682102). Another...
I like using suggested by @jods4 binding behaviors for these purposes. It's extensible, as you can plug in your own custom behaviours without ripping out and modifying parts of the...
@jods4 the problem with "async per binding expression" is that you wouldn't be able to combine multiple async evaluations, e.g. how would you deal with this tenary use-case: ``` js...
@jods4 I have to disagree with a couple of points: > It's not very flexible though: how do you define the expression value before the promise resolves? Only sane answer...
I just realized the "binding methods" could have a syntax definition similar to Aurelia's binding behaviours or value converters. No need for decorators or the `::` syntax: ``` js export...
I only used `"placeholder value"` as an example :palm_tree: . :D Obviously, the built-in function could have a customizable default value, as you suggested, like so: ``` js @asyncBinding promiseValueOrDefault(updateBinding,...
> (1) Analysing the expression to find magic methods is taxing perf and fragile. How would it be different to what Aurelia currently does when you have binding behaviours or...
I was thinking about the best way "Binding Methods" could be defined. Here's an improvement over what I proposed before. Example: ``` js export class MyCustomPromiseValueBindingMethod { constructor(defaultValue) { this.defaultValue...