Created
May 18, 2018 10:51
-
-
Save platoosom/58f34051b7153cb25b222da347e26dd9 to your computer and use it in GitHub Desktop.
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> | |
<meta charset="UTF-8"> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> | |
<script> | |
var application = angular.module('application', []) | |
application.controller('newYearResolutionListWidget', function ($scope) { | |
$scope.lists = [ | |
{id: 1, title: 'ดื่มน้ำวันละ 3 ลิตร'}, | |
{id: 2, title: 'ซ้อมกีต้าร์วันละเพลง'}, | |
{id: 3, title: 'ฝึกภาษาอังกฤษวันละคลิป'} | |
] | |
}) | |
</script> | |
<body ng-app="application" > | |
<div ng-controller="newYearResolutionListWidget"> | |
<ul> | |
<li ng-repeat="list in lists"> | |
{{ list.title }} | |
</li> | |
</ul> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment