Last active
September 23, 2020 05:21
-
-
Save avermeulen/9546200 to your computer and use it in GitHub Desktop.
A very basic AngularJS application
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.2.14/angular.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="myApp"> | |
<div ng-controller="CtrlOne">Hello, {{name}}</div> | |
<script> | |
var myApp = angular.module("myApp", []); | |
myApp.controller("CtrlOne", function ($scope) { | |
$scope.name = "Andre"; | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hhhhhhhg