angular-bootstrap tabs插件为何获取不到ngmodel值。

 <uib-tabset active="activeJustified" justified="true">
    <uib-tab index="0" heading="Justified">
      name
      <input type="text" ng-model="name"/>
    </uib-tab>
    <uib-tab index="1" heading="SJ">Short Labeled Justified content</uib-tab>
    <uib-tab index="2" heading="Long Justified">Long Labeled Justified content</uib-tab>
  </uib-tabset>
  <button type="button" ng-click="clicks()">点击</button>
  <hr />

点击后获取不到name的值,求大神

阅读 2.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进