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/868450604373e34a52504169163db32a to your computer and use it in GitHub Desktop.
Save platoosom/868450604373e34a52504169163db32a to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script>
var application = angular.module('application', [])
application.controller('profileWidget', function ($scope) {
$scope.name = 'Watcharamet S.'
$scope.age = 41
$scope.bio = 'Always smile'
})
</script>
<body ng-app="application" >
<div ng-controller="profileWidget">
<div>{{ name | uppercase }}</div>
<div>Next year your age is {{ age+1 }}</div>
<div>{{ bio }}</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment