Getting scope in Angular UI tabs

I am having problems with angular areas in a tab context (Angular UI).

Here is my jsfiddle example (a smaller example showing fields on multiple tabs with a single submit button outside the tabs).

Here is the basic html layout:

<form...>
  <tab>
    <pane>
      <input...>
    </pane>
  </tab>
</form>

Looking at the jsfiddle example , without tabs, if I submit a very basic form, I will see the $ scope.user object as an object. Since the fields are inside the panels (tabs), the scope is incorrect. How can I access the submitted user object in createUser?

+5
source share
1 answer

, user . , alert $scope.$$childHead.panes[0].$$nextSibling.user.first_name not $scope.user. , , .

user . ng-model HTML . :

function MyCtrl($scope) {
  $scope.user = {};
  $scope.createUser = function () {
    alert($scope.user);
  };
}
+7

All Articles