This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): add example for manualBootstrap
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |