Setup/Test Angular.js

This commit is contained in:
CommanderStrax 2015-12-23 16:34:22 -06:00
parent be7cf1f819
commit c352c4b70e
3 changed files with 8 additions and 3 deletions

4
web/ascript.js Normal file
View file

@ -0,0 +1,4 @@
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.test = "Successful!";
});

View file

@ -1,9 +1,10 @@
<html>
<html ng-app="myApp" ng-controller="myCtrl">
<head>
<title>EasyCTF 2016</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.min.js" integrity="sha384-r1y8TJcloKTvouxnYsi4PJAx+nHNr90ibsEn3zznzDzWBN9X3o3kbHLSgcIPtzAp" crossorigin="anonymous"></script>
<script src="ascript.js"></script>
</head>
<body>
<h1>Hello, EasyCTF!</h1>
<h1>Angular.js Status: <span style="color:lime;">{{test}}</span></h1>
</body>
</html>
</html>