-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmigrate.html
More file actions
40 lines (36 loc) · 1.12 KB
/
Copy pathmigrate.html
File metadata and controls
40 lines (36 loc) · 1.12 KB
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
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src=
"https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js">
</script>
<script>
function MyController($scope, $http) {
$scope.days = ["Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"];
}
var app = angular.module('MyApp', []);
app.controller('MyController', MyController);
</script>
<div ng-app-old="MyApp" ng-controller="MyController">
<select>
<option ng-repeat="d in days">{{ d }}</option>
</select>
</div>
<script src="https://code.angularjs.org/tools/system.js"></script>
<script src="https://code.angularjs.org/tools/typescript.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.0/angular2-polyfills.min.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.0/Rx.min.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.0/angular2.min.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.0/upgrade.js"></script>
<script>
System.config({
transpiler: 'typescript',
typescriptOptions: { emitDecoratorMetadata: true }
});
System.import('./migrate.js');
</script>
</body>
</html>