question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic identifier on input from $scope value

See original GitHub issue

I need dynamic id’s or other identifier on label/input elements for Selenium tests. It seems that current implementation do not compile/evaluate values from scope.

For example

<div id="myid-{{scopeValue}}" ngf-select></div>

gives

<input type="file"  id="ngf-myid-{{scopeValue}}" ...>

here is jsfiddle: http://jsfiddle.net/sg5d1cuq/

In my case I have file tree where each folder uses ng-file-upload and handles upload. File tree is generated using ng-repeat so id’s can’t be hard-coded.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
danialfaridcommented, Sep 28, 2016

Fixed at 12.2.12

0reactions
ashwinaggarwalcommented, Sep 26, 2016

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamically add key pair value to $scope variable and bind ...
I have a form where user can optionally add multiple pairs of (key, value). Imagine the key is the label for a input...
Read more >
Static and Dynamic Scoping - GeeksforGeeks
Dynamic Scoping: With dynamic scope, a global identifier refers to the identifier associated with the most recent environment and is uncommon in ...
Read more >
Dynamic Scope - YouTube
Scope and Lifetime · Static Scoping vs Dynamic Scoping in C language with Example · While Loops in R · Typing: Static vs...
Read more >
Dynamic Form in ... - Apache Zeppelin 0.8.0 Documentation
Apache Zeppelin dynamically creates input forms. ... Using form Templates (scope: paragraph) ... Also you can separate option's display name and value, ...
Read more >
Dynamic Blocks - Configuration Language | Terraform
Dynamic blocks automatically construct multi-level, nested block structures. ... when assigning a value to an argument using the name = expression form.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found