forked from varyoo/ngTagEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
29 lines (27 loc) · 861 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html ng-app="app">
<head>
<style>
body{background-color:#fff;}
form{width:600px;margin:15% auto;}
</style>
<link rel="stylesheet" href="ngTagEditor.css" type="text/css"/>
<script type="text/javascript" src="http://cdn.jsdelivr.net/angularjs/1.3.15/angular.js"></script>
<script type="text/javascript" src="ngTagEditor.css"></script>
<script type="text/javascript" src="ngTagEditor.js"></script>
</head>
<body>
<script type="text/javascript">
angular.module('app', ['ngTagEditor'])
.controller('RandomController', function($scope){
$scope.tags2 = [
"This","is","a","test"
];
});
</script>
<form ng-controller="RandomController">
<tag-editor ng-model="tags2" readonly="false" fetch=""></tag-editor>
<span style="max-width=100%">{{tags2}}</span>
</form>
</body>
</html>