This repository has been archived on 2020-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
angular-contenteditable/test/fixtures/simple.html

35 lines
1003 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html ng-app="simple">
<head>
<title>Simple</title>
2013-06-20 02:33:52 +00:00
<!-- we need jquery for e2e testing -->
<script src="../../components/jquery/jquery.js"></script>
2013-07-12 17:53:50 +00:00
<script src="../../components/angular-unstable/angular.js"></script>
<script src="../../angular-contenteditable.js"></script>
<script>
angular.module('simple', ['contenteditable'])
2013-06-20 02:33:52 +00:00
.controller('Ctrl', function($scope) {
$scope.model = "Initial stuff <b>with bold</b> <em>and italic</em> yay"
})
2013-06-20 02:33:52 +00:00
.controller('Ctrl2', function($scope) {})
angular.bootstrap(document, ['simple'])
</script>
</head>
<body>
<div ng-controller="Ctrl">
2013-06-20 02:33:52 +00:00
<label>Contenteditable (View):</label>
<div id="input" contenteditable ng-model="model">
</div>
2013-06-20 02:33:52 +00:00
<hr>
<div>
<label>Model:</label>
2013-06-20 02:33:52 +00:00
<pre id="output" onclick="console.log('clicked the output')">{{ model }}</pre>
</div>
</div>
2013-06-20 02:33:52 +00:00
<div ng-controller="Ctrl2">
The other controller
</div>
</body>
</html>