Html :
<tabset>
<tab heading="Create CS Sales Order & GRN-VRRE" >
<form name="motorForm" novalidate>
<input type="text" ng-model="ngtext" required />
<button type="submit" ng-click="CSsalesVRRESave()" >submit</button>
</form>
</tab>
<tab heading="Create CS Sales Order & GRN-VRRE" >
<div>somthing inside it</div>
</tab>
</tabset>
Javascript function
$scope.CSsalesVRRESave = function () {
console.log($scope.motorForm.$valid);
}
output console gives me error TypeError:
Cannot read property '$valid' of undefined :
Note : if I remove tabset it works as per requirement