forked from thelgevold/angular-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upgrade.js
29 lines (29 loc) · 1.25 KB
/
upgrade.js
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
System.register(['angular2/upgrade', './components/algorithms/algorithms', './components/adder/adder', './components/counter/counter'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var upgrade_1, algorithms_1, adder_1, counter_1;
var adapter;
return {
setters:[
function (upgrade_1_1) {
upgrade_1 = upgrade_1_1;
},
function (algorithms_1_1) {
algorithms_1 = algorithms_1_1;
},
function (adder_1_1) {
adder_1 = adder_1_1;
},
function (counter_1_1) {
counter_1 = counter_1_1;
}],
execute: function() {
adapter = new upgrade_1.UpgradeAdapter();
angular.module('angular-legacy').directive('algorithms', adapter.downgradeNg2Component(algorithms_1.Algorithms));
angular.module('angular-legacy').directive('add', adapter.downgradeNg2Component(adder_1.Adder));
angular.module('angular-legacy').directive('counterButton', adapter.downgradeNg2Component(counter_1.Counter));
adapter.bootstrap(document.body, ['angular-legacy']);
}
}
});
//# sourceMappingURL=upgrade.js.map