JetBrains / JetBrains/web-types

question how to support attributes with angulars 2 way binding support

Open
#93 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
306
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Hi,

we are building some custom (native TS) web components that also support Angular 2 way binding on the value property
We added this to contributions\html\elements, auto complete works on html attributes and one way binding, but when [(value)] is set I get this warning: `Attribute [(value)] is not allowed here`. Anyone any idea what we are missing?

![Image](https://github.com/user-attachments/assets/35128230-d6dc-4278-952a-37f4984c6785)

```JSON
{
"name": "ads-input",
"description": "A web component where a user can input text.",
"attributes": [
{
"name": "value",
"description": "Adds a value to the input field."
},
],
"events": [
{
"name": "valueChange",
"description": "Emitted when value changes"
}
],
"js": {
"properties": [
{
"name": "value",
"description": "Adds a value to the input field.",
"type": "string"
},
]
}
},
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.