javascript - Accessing a form in an Angular-UI uib-tab -
if have form in uib-tab
, how access (eg) validate form?
here's plunker: http://plnkr.co/edit/8htccl5hamjwuchetnlq?p=preview
when try access $scope.forminside
it's undefined (the form inside uib-tab). if same $scope.formoutside
access form validation etc.
the uib-tabset
has own scope, forminside
on scope of uib-tabset
. if use controller-as notation, find correct scope (the 1 of controller):
<uib-tab index="0" heading="tab 1"> <form name="vm.forminside"> </form> </uib-tab>
see this edited plunker.
Comments
Post a Comment