Forked from Captain Anonymous's Pen Basic Usage.
Created
July 14, 2015 20:57
-
-
Save vineshhpatel/a4da6d82b4c0bf1c1a06 to your computer and use it in GitHub Desktop.
Basic Usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-controller="AppCtrl" class="buttondemoBasicUsage" ng-app="MyApp"> | |
<md-content> | |
<section layout-sm="column" layout-align="center center"> | |
<div> | |
<md-button class="md-raised"></md-button> | |
</div> | |
<div> | |
<md-button class="md-raised"></md-button> | |
</div> | |
<div> | |
<md-button class="md-raised"></md-button> | |
</div> | |
</section> | |
</md-content> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('MyApp') | |
.controller('AppCtrl', function($scope) { | |
$scope.title1 = 'Button'; | |
$scope.title4 = 'Warn'; | |
$scope.isDisabled = true; | |
$scope.googleUrl = 'http://google.com'; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-route.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-aria.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-messages.min.js"></script> | |
<script src="http://cdn.rawgit.com/angular/bower-material/v0.10.0/angular-material.js"></script> | |
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-114/assets-cache.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.buttondemoBasicUsage section { | |
background: #f7f7f7; | |
border-radius: 3px; | |
text-align: center; | |
margin: 1em; | |
position: relative !important; | |
padding-bottom: 10px; } | |
.buttondemoBasicUsage md-content { | |
margin-right: 7px; } | |
.buttondemoBasicUsage section .md-button { | |
margin-top: 16px; | |
margin-bottom: 16px; } | |
.buttondemoBasicUsage .label { | |
position: absolute; | |
bottom: 5px; | |
left: 7px; | |
font-size: 14px; | |
opacity: 0.54; } | |
.md-raised { | |
width: 200px; | |
height: 60px; | |
margin-bottom: 10px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="http://cdn.rawgit.com/angular/bower-material/v0.10.0/angular-material.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment