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

23 lines
429 B
HTML

<!DOCTYPE html>
<!-- target: hello.txt -->
<html>
<body ng-app="myApp">
<div ng-controller="myCtrl">
<p id="link" ng-click="myFunc()">OK</p>
</div>
<script src="../angular1/angular.min.js"></script>
<script>
angular.module('myApp', [])
.controller('myCtrl', ['$scope', function($scope) {
$scope.myFunc = function() {
window.location = "/data/hello.txt";
};
}]);
</script>
</body>
</html>