mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
demo for ng1 app hosting ng2 components
Simple project demonstrating ng2 component hosting within ng1-based application (based on official angular-seed repo).
This commit is contained in:
41
ng1-hosting-ng2/app/app.component.js
Normal file
41
ng1-hosting-ng2/app/app.component.js
Normal file
@@ -0,0 +1,41 @@
|
||||
System.register(['angular2/core', "./components/ng2/tabs"], function(exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
var core_1, tabs_1;
|
||||
var AppComponent;
|
||||
return {
|
||||
setters:[
|
||||
function (core_1_1) {
|
||||
core_1 = core_1_1;
|
||||
},
|
||||
function (tabs_1_1) {
|
||||
tabs_1 = tabs_1_1;
|
||||
}],
|
||||
execute: function() {
|
||||
AppComponent = (function () {
|
||||
function AppComponent() {
|
||||
}
|
||||
AppComponent = __decorate([
|
||||
core_1.Component({
|
||||
selector: 'my-app',
|
||||
template: "\n <h2>Angular 2 components</h2>\n <tabs>\n <tab tabTitle=\"Foo\">\n Content of tab Foo\n </tab>\n <tab tabTitle=\"Bar\">\n Content of tab Bar\n </tab>\n </tabs>\n ",
|
||||
directives: [tabs_1.Tabs, tabs_1.Tab]
|
||||
}),
|
||||
__metadata('design:paramtypes', [])
|
||||
], AppComponent);
|
||||
return AppComponent;
|
||||
}());
|
||||
exports_1("AppComponent", AppComponent);
|
||||
}
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=app.component.js.map
|
Reference in New Issue
Block a user