-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.js
25 lines (25 loc) · 1.11 KB
/
display.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
if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
}
};
///<reference path="modules/angular2.d.ts" />
var angular2_1 = require('angular2/angular2');
var Display = (function () {
function Display() {
this.myName = "Deepak Khetwal";
this.friendNames = ['Neeraj', 'Falgun', 'Laxman'];
}
Display = __decorate([
angular2_1.Component({ selector: 'display' }),
angular2_1.View({
templateUrl: 'modules/view/display-list.html',
directives: [angular2_1.For]
})
], Display);
return Display;
})();
angular2_1.bootstrap(Display);