Created
October 20, 2014 07:00
-
-
Save MSakamaki/f7235a5bac52eb4bf41e to your computer and use it in GitHub Desktop.
2014-10-20 2nd
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
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} | |
body { | |
background: #ddf; | |
font: 30px sans-serif; | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.js"></script> | |
</head> | |
<body ng-app=""> | |
<div ng-init="'sample=[{ | |
pulldown: [1,2,3] | |
}]'"> | |
<div ng-repeat="data in sample"> | |
{{data|json}} | |
<select ng-model="default" ng-options="val in data.pulldown"> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment