Skip to content

Fallback to js expression parsing for angular directives if needed#93

Merged
thecrypticace merged 1 commit intomainfrom
angular-ngclass-error
Aug 31, 2022
Merged

Fallback to js expression parsing for angular directives if needed#93
thecrypticace merged 1 commit intomainfrom
angular-ngclass-error

Conversation

@thecrypticace
Copy link
Copy Markdown
Contributor

Angular's internal __ng_directive parser outright fails when given an expression like foo?.[anything_can_go_here] so we'll try it and then fall back to JS expression parsing if it fails.

Fixes #91

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

Successfully merging this pull request may close these issues.

Error trying to format ngClass attribute with optional chaining followed by property access via variable

1 participant