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.

[(ngModel)]="selectedIndex" not working in TabView

See original GitHub issue
<TabView> //works fine 
<TabView #tabElem [(ngModel)]="selectedIndex"> //will cause error in both ios & android

( selectedIndex = 0 is defined in the component)


JS: EXCEPTION: Error in pages/community/list-community.html:5:18 caused by: No value accessor for form control with unspecified name attribute
JS: ORIGINAL EXCEPTION: No value accessor for form control with unspecified name attribute
JS: ORIGINAL STACKTRACE:
JS: Error: No value accessor for form control with unspecified name attribute
    "tns-ios": {
      "version": "2.5.0-2016-11-3-2"
    },
    "tns-android": {
      "version": "2.5.0-next-2016-11-21-1415"
    }

    "tns-core-modules": "2.4.0-2016-10-17-4407"
    "nativescript-angular": "1.1.2",

    "@angular/common": "2.1.2",
    "@angular/compiler": "2.1.2",
    "@angular/core": "2.1.2",
    "@angular/forms": "2.1.2",
    "@angular/http": "2.1.2",
    "@angular/platform-browser": "2.1.2",
    "@angular/platform-browser-dynamic": "2.1.2",
    "@angular/router": "3.1.2",

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
hdeshevcommented, Nov 23, 2016

This turns out to be a bug in the value accessor implementation. The fix should land on master sometime tomorrow.

2reactions
leocaseirocommented, Nov 23, 2016

PS: We need to make sure we import NativeScriptFormsModule

Read more comments on GitHub >

github_iconTop Results From Across the Web

Progress indicator not stopping inside TabView in android ...
Iam working the nativescript application.I have TabView with three tabs,in each tab i have progress indicator for showing api is loading and ...
Read more >
Dropdown - PrimeNG - PrimeFaces
Use selectedItem template to customize the selected label display and the item template to change the content of the options in the dropdown...
Read more >
Angular Routing With Tabs Component - Smart HTML Elements
The CrisisService.getCrisis method returns an observable, in order to prevent the route from loading until the data is fetched. The Router guards require...
Read more >
Tabs - Angular Material
The active tab may be set using the selectedIndex input or when the user selects one of the tab labels in the header....
Read more >
Demos > Tabs - AngularJS Material
The Dynamic Height demo shows how tabs can be used to display content with varying heights. Note: If you are using the Tabs...
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