Skip to content

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

Closed
@devna13

Description

@devna13
<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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions