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.

Remove selected as alternative to selectedStep. Selected is valid html

See original GitHub issue

Say there are 10 components in a module and one uses the ng2-archwizard. All other modules will fail at runtime if they use selected in a select/option html component.

ERROR Error: Uncaught (in promise): Error: Template parse errors:
No provider for WizardStep ("ustomer:
                        <select disabled class="form-control">
                            [ERROR ->]<option selected>{{specified.customerName}}</option>
                        </select>
              "): ng:///CommissionModule/NewLocationComponent.html@27:28
Error: Template parse errors:

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
madoarcommented, Oct 3, 2017

You’re right, this can lead to a problem. I believe it’s best to also remove some other directive selectors, like optional, because they are too generic and used otherwise.

0reactions
SimonJangcommented, Oct 11, 2017

Ok great. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove select option with specific value - Stack Overflow
You don't need Prototype JS to do this. Removing an option by index: var select = document.getElementById('someid') select.
Read more >
HTML DOM Select remove() Method - W3Schools
Select remove () Method. ❮ Select Object. Example. Remove the selected option from the drop-down list: var x = document.getElementById("mySelect");
Read more >
Stepper step routes · Issue #12345 · angular/components
When I switch between steps, route url is updated. When I navigate to a specific stepper step route, the step is selected.
Read more >
Building a Custom Stepper using Angular CDK - InDepth.Dev
The body will hold the content of the current/selected step. ... (number) – the index of the step that is selected, an alternative...
Read more >
Selection.deleteFromDocument() - Web APIs | MDN
The deleteFromDocument() method of the Selection interface deletes the selected text from the document's DOM.
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