Hi,
I'm just developing an application with angular and nodejs. In my register form, i have used bootstrap tabs (pills), which has form fields. I have to double-click to show the content of next tab. Due to this data entered in the first tabs is lost on selecting the second or subsequent tabs(I have double click the tabs to show). Can someone point out the issue here?
Note: If i use the same in normal html, it works fine. The issue arises when used with angularjs
Env:
Latest Bootstrap , jquery (1.8.2), angular(1.0.1)
app.js
==========
angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$routeProvider.when('/view1', {templateUrl: '/partials/partial1.html', controller: MyCtrl1});
$routeProvider.when('/view2', {templateUrl: '/partials/partial2.html', controller: MyCtrl2});
$routeProvider.when('/posts', {templateUrl: '/partials/posts.html', controller: PostController});
$routeProvider.when('/register', {templateUrl: '/partials/register.html', controller: RegisterController});
$routeProvider.when('/search', {templateUrl: '/partials/search.html', controller: SearchController});
$routeProvider.otherwise({redirectTo: '/view1'});
$locationProvider.html5Mode(true);
}]);
index.html
==========
<html ng-app="myApp">
<head>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<script src="js/lib/jquery/jquery-latest.js"></script>
<script src="js/lib/bootstrap/bootstrap.min.js"></script>
<script src="js/lib/angular/angular.min.js"></script>
<script src="js/app.js"></script>
<script src="js/services.js"></script>
<script src="js/controllers.js"></script>
<script src="js/filters.js"></script>
<script src="js/directives.js"></script>
</head>
<body>
<div ng-view> </div>
</body>
</html>
I have attached the screenshots of single and double click of the tabs.
Thanks,
Arun