Created
May 16, 2018 03:05
-
-
Save platoosom/868450604373e34a52504169163db32a 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> | |
<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