Conversation
Currently outlets are accept via an array of string `[a,b,c]`. This commit adds the ability to also accept a rename object withing this array that will determine how will the outlet be accessed.
For example
```
static outlets = ['alpha', {'outlet--with--very--long--name': short}]
```
now instead of `this.outletWithVeryLongNameOutlet` you can use `this.shortOutlet`
|
Why access both the original and renamed outlet? That's confusing. Here's I believe a better solution #717 |
Thank you for checking it but It does not create outlet with original name. |
|
Would love to have this merged 🤞🏻 Without this functionality, outlet names are tied controller names, which is very limiting. I currently have a |
|
@marcoroth @brunoprietog thoughts on this one? This would be super helpful. Thank you! |
This PR adds ability to rename outlets with the following api
Let me know if this would be useful as a feature.
Thank you!