Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In generated code, ternary operators have expressions swapped #8

Closed
laurence-myers opened this issue Feb 27, 2018 · 1 comment
Closed

Comments

@laurence-myers
Copy link
Owner

Template:

ng-repeat="file in (ctrl ? ctrl.uploadContext.currentlyUploading : uploadContext.currentlyUploading)" title="{{ file.name }}"

Produced code:

for (const file of (_scope_1.ctrl ? _scope_1.uploadContext.currentlyUploading : _scope_1.ctrl.uploadContext.currentlyUploading)) {
@laurence-myers
Copy link
Owner Author

Seems this was actually a bug in the original AngularJS parser code! It named the first argument "alternate" and the second optional argument "consequent".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant