We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3965bd8 commit 1f02f9cCopy full SHA for 1f02f9c
README.md
@@ -231,6 +231,16 @@ export class AppComponent {
231
}
232
```
233
234
+##### Set the selectedIndex value in Angular
235
+
236
+Get an instance of the child drop down component like this:
237
238
+```
239
+@ViewChild('dd') dropDown: ElementRef;
240
+// set the index programatically from the parent component
241
+this.dropDown.nativeElement.selectedIndex = <some number from code>
242
243
244
## Working with value and display members
245
It is a common case that you want to have one thing displayed in the drop down and then get some backend value
246
tied to the tex. For example drop down with states you might want tos how the full state name (i.e. Florida)
0 commit comments