-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep2.html
32 lines (28 loc) · 819 Bytes
/
step2.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
30
31
32
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Angular SVG demo</title>
<link rel="stylesheet" href="demo.css">
</head>
<body ng-app="myApp">
<div ng-controller="SvgCtrl">
<h1>{{greeting}}</h1>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
id="mysvg">
<text x="200" y="100" class="textStyle">Hello</text>
<circle cx="400" cy="400" r="100" fill="red" />
</svg>
</div>
<script type="text/javascript" src="http://code.angularjs.org/1.2.0rc1/angular.min.js"></script>
<script type="text/javascript">
var myApp = angular.module('myApp',[]);
function SvgCtrl($scope) {
$scope.greeting = 'Now let\'s add an svg here.';
}
</script>
</body>
</html>