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

Commit e234ca5

Browse files
author
Erin Altenhof-Long
committed
test(e2e): add example for manualBootstrap
1 parent bde8014 commit e234ca5

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

e2e/manualBootstrap/index.html

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>
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="ManualController" 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('manualBootstrapHint', [])
23+
.controller('ManualController', function() {
24+
var element = document.getElementById('test');
25+
});
26+
angular.bootstrap(document, ['manualBootstrapHint', 'ngHintDom']);
27+
</script>
28+
</html>

0 commit comments

Comments
 (0)