aurelia / aurelia/templating-binding

Support assignment of attribute litterals via interpolation

Open
#106 3 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
30
Forks
26
PR merge metrics
No merged PRs in 30d

Description

a lot of third-party functionality is achieved via adding attributes to an element. Some of these attribute values can be quite large and/or can be best assigned via interpolation. It would be useful to support this for the sake of better integration with standards + third-party libraries.

As per @jdanyow's suggestion, introduciton of `.attr` binding could facilitate these use cases.

For example:

```html

```
would result in the outcome (assuming `current = 0`):
```html

Contributor guide

Open the contributing guide

Research direction

Start by locating the templating engine's pluggable command syntax and the existing binding commands in this repository. Compare their behavior with the issue's aria-valuemin.attr and aria-valuemax.attr example, then verify that interpolated values are assigned as ordinary attributes and add or run coverage for that behavior if an existing test entry point is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.