[(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:
- Created 7 years ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This turns out to be a bug in the value accessor implementation. The fix should land on master sometime tomorrow.
PS: We need to make sure we import
NativeScriptFormsModule