Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 889fb3f

Browse files
author
Erin Altenhof-Long
committed
test(e2e): add alternative manual bootstrap test
#21
1 parent 0e40d1c commit 889fb3f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!doctype html>
2+
<html>
3+
<head ng-hint>
4+
<meta charset="utf-8">
5+
<title>Angular Hint Example</title>
6+
7+
<script src="../../bower_components/angular/angular.js"></script>
8+
<script src="../../bower_components/angular-route/angular-route.js"></script>
9+
<script src="../../dist/hint.js"></script>
10+
11+
</head>
12+
<body>
13+
<div id="title">Manual Bootstrap Example</div>
14+
<div ng-controller="ManualHintController" id="test">
15+
This is a test div that the controller will attempt to remove. Such manipulation
16+
of the DOM will cause ng-hint-dom to log a message if it is loaded correctly
17+
by the manual bootstrapping.
18+
</div>
19+
</body>
20+
21+
<script>
22+
var app = angular.module('manualBootstrapHintAlternative', [])
23+
.controller('ManualHintController', function() {
24+
var element = document.getElementById('test');
25+
});
26+
angular.bootstrap(document, ['manualBootstrapHintAlternative']);
27+
</script>
28+
</html>

0 commit comments

Comments
 (0)