vendredi 1 juillet 2016

Material AngularJS ngShow and ngHide

I have created tabs in angularjs with material. I am hiding its tabs content from beginning. How can I show content on tab click with some animation. Some of my codes

<div flex="100" class="bookingBox" layout-align="center center" layout="row">
    <md-content flex="35">
      <md-tabs md-dynamic-height md-border-bottom md-center-tabs>
        <md-tab label="Item 1" ng-click="bookFlight()">
          <md-content class="md-padding ng-hide">
            Item 1
          </md-content>
        </md-tab>
        <md-tab label="Item 2" ng-click="myb()">
          <md-content class="md-padding ng-hide">
            Item 2
          </md-content>
        </md-tab>
        <md-tab label="Item 3" ng-click="olci()">
          <md-content class="md-padding ng-hide">
            Item 3
          </md-content>
        </md-tab>
      </md-tabs>
    </md-content>

My code pen http://codepen.io/milindsaraswala/pen/NrRZYV

Aucun commentaire:

Enregistrer un commentaire