Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
test(e2e): add example for manualBootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Erin Altenhof-Long committed Jul 14, 2014
1 parent bde8014 commit e234ca5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions e2e/manualBootstrap/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Angular Hint Example</title>

<script src="../../bower_components/angular/angular.js"></script>
<script src="../../bower_components/angular-route/angular-route.js"></script>
<script src="../../dist/hint.js"></script>

</head>
<body>
<div id="title">Manual Bootstrap Example</div>
<div ng-controller="ManualController" id="test">
This is a test div that the controller will attempt to remove. Such manipulation
of the DOM will cause ng-hint-dom to log a message if it is loaded correctly
by the manual bootstrapping.
</div>
</body>

<script>
var app = angular.module('manualBootstrapHint', [])
.controller('ManualController', function() {
var element = document.getElementById('test');
});
angular.bootstrap(document, ['manualBootstrapHint', 'ngHintDom']);
</script>
</html>

0 comments on commit e234ca5

Please sign in to comment.