Angular Material - Tabs

The md-tabs and md-tab Angular directives are used to show tabs in the applcation. md-tabs is the grouping container for md-tab elements.
The following table lists out the parameters and description of the different attributes of md-tabs.
md-selected
Index of the active/selected tab.
md-no-ink
If present, disables the ink ripple effects.
md-no-ink-bar
If present, disables the selection ink bar.
md-align-tabs
Attribute to indicate position of tab buttons: bottom or top; default is top.
md-stretch-tabs
Attribute to indicate whether or not to stretch tabs: auto, always, or never; default is auto.
md-dynamic-height
When enabled, the tab wrapper will resize based on the contents of the selected tab.
md-center-tabs
When enabled, tabs will be centered provided there is no need for pagination.
md-no-pagination
When enabled, pagination will remain off.
md-swipe-content
When enabled, swipe gestures will be enabled for the content area to jump between tabs.
md-enable-disconnect
When enabled, scopes will be disconnected for tabs that are not being displayed. This provides a performance boost, but may also cause unexpected issues and is not recommended for most users.
md-autoselect
When present, any tabs added after the initial load will be automatically selected.
The following table lists out the parameters and description of the different attributes of md-tab.
label
Optional attribute to specify a simple string as the tab label.
ng-disabled
If present, disabled tab selection.
md-on-deselect
Expression to be evaluated after the tab is de-selected.
md-on-select
Expression to be evaluated after the tab is selected.
md-active
When true, sets the active tab.
Note − There can only be one active tab at a time.
The following example shows the use of md-tabs and also the uses of tabs components.
am_tabs.htm
<html lang = "en">
   <head>
      <link rel = "stylesheet"
         href = "https://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css">
      <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
      <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.min.js"></script>
      <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-aria.min.js"></script>
      <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-messages.min.js"></script>
      <script src = "https://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js"></script>
      <link rel = "stylesheet" href = "https://fonts.googleapis.com/icon?family=Material+Icons">
      
      <script language = "javascript">
         angular
            .module('firstApplication', ['ngMaterial'])
            .controller('tabController', tabController);

         function tabController ($scope) {            
            $scope.data = {
               selectedIndex: 0,
               secondLocked:  true,
               secondLabel:   "2",
               bottom:        false
            };
             
            $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);
            };
         }	  
      </script>      
   </head>
   
   <body ng-app = "firstApplication"> 
      <div id = "tabContainer" ng-controller = "tabController as ctrl" ng-cloak>
         <md-content class = "md-padding">
            <md-tabs class = "md-accent" md-selected = "data.selectedIndex"
               md-align-tabs = "{{data.bottom ? 'bottom' : 'top'}}">
               <md-tab id = "tab1">
                  <md-tab-label>1</md-tab-label>
                  <md-tab-body>Item #1 <br/>selectedIndex  =  0;</md-tab-body>
               </md-tab>
               
               <md-tab id = "tab2" ng-disabled = "data.secondLocked">
                  <md-tab-label>{{data.secondLabel}}</md-tab-label>
                  <md-tab-body>Item #2 <br/>selectedIndex  =  1;</md-tab-body>
               </md-tab>
               
               <md-tab id = "tab3">
                  <md-tab-label>3</md-tab-label>
                  <md-tab-body>Item #3<br/>selected Index  =  2;</md-tab-body>
               </md-tab>
            </md-tabs>
         </md-content>
         
         <div class = "md-padding" layout = "row" layout-sm = "column"
            layout-align = "left center" style = "padding-top: 0;">
            <md-checkbox ng-model = "data.secondLocked" aria-label = "Disable tab 2?"
               style = "margin: 5px;">Disable tab 2?</md-checkbox>
            <md-checkbox ng-model = "data.bottom" aria-label = "Align tabs to bottom?"
               style = "margin: 5px;">Align tabs to bottom?</md-checkbox>
         </div>
         
      </div>
   </body>
</html>
Verify the result.