mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-03 04:18:51 +00:00
20 lines
453 B
JavaScript
20 lines
453 B
JavaScript
|
|
angular.module('tabsDemo1', ['ngMaterial'] )
|
|
.controller('AppCtrl', function( $scope ) {
|
|
|
|
$scope.data = {
|
|
selectedIndex : 0,
|
|
secondLocked : true,
|
|
secondLabel : "Item Two"
|
|
};
|
|
|
|
$scope.next = function() {
|
|
$scope.data.selectedIndex = Math.min($scope.data.selectedIndex + 1, 2) ;
|
|
};
|
|
|
|
$scope.previous = function() {
|
|
$scope.data.selectedIndex = Math.max($scope.data.selectedIndex - 1, 0);
|
|
};
|
|
|
|
});
|