Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save platoosom/58f34051b7153cb25b222da347e26dd9 to your computer and use it in GitHub Desktop.
Save platoosom/58f34051b7153cb25b222da347e26dd9 to your computer and use it in GitHub Desktop.
<!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