qutebrowser/tests/end2end/data/hints/html/angular1.html
2018-01-07 11:23:28 +01:00

27 lines
573 B
HTML

<!DOCTYPE html>
<!-- target: hello.txt -->
<html>
<body ng-app="myApp">
<div ng-controller="myCtrl">
<p>Click the button to run a function:</p>
<p id="link" ng-click="myFunc()">OK</p>
<p>The button has been clicked {{count}} times.</p>
</div>
<script src="../angular1/angular.min.js"></script>
<script>
angular.module('myApp', [])
.controller('myCtrl', ['$scope', function($scope) {
$scope.count = 0;
$scope.myFunc = function() {
$scope.count++;
window.location = "/data/hello.txt";
};
}]);
</script>
</body>
</html>