Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(language-service): expression bindings should not break directive…
… matching The language service uses an elements attributes to determine if it matches a directive in the component scope. We do this by accumulating all attribute bindings and matching against the selectors for the available directives. When an attibute has a complex (non-literal primitive) value, this code would previously generate an invalid attribute such as `[attrName='1' + '2']`. For cases where the attribute is bound to an expression that is not a literal primitive, this commit changes the logic to only generate the attribute name and exclude the value. Fixes angular/vscode-ng-language-service#1278
- Loading branch information