Howard Bash
asked on
SharePoint App with Angular2
Using a tutorial I created a SharePoint App with Angular2. It deploys but has problems.
Here is the link to the tutorial:
Tutorial Link
I carefully copied all the code and the app deploys, but the "hello world" message doesn't show up and I get an error in VS2015 IDE which I will include next followed by the TS file and the JS file.
The JS File:
The TS File:
Please advise.
2017-01-14_15-58-42.png
Here is the link to the tutorial:
Tutorial Link
I carefully copied all the code and the app deploys, but the "hello world" message doesn't show up and I get an error in VS2015 IDE which I will include next followed by the TS file and the JS file.
The JS File:
System.register(["./app.module", "angular2/core"], function (exports_1, context_1) {
"use strict";
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 __moduleName = context_1 && context_1.id;
var app_module_1, core_1, AppComponent;
return {
setters: [
function (app_module_1_1) {
app_module_1 = app_module_1_1;
},
function (core_1_1) {
core_1 = core_1_1;
}
],
execute: function () {
AppComponent = class AppComponent {
};
AppComponent = __decorate([
core_1.Component({
selector: 'app-main',
template: `<h1>${app_module_1.Welcome.getMessage()}</h1>`
}),
__metadata("design:paramtypes", [])
], AppComponent);
exports_1("AppComponent", AppComponent);
}
};
});
//# sourceMappingURL=app.component.js.map
The TS File:
import {Welcome} from './app.module'
import {Component} from 'angular2/core'
@Component({
selector: 'app-main',
template: `<h1>${Welcome.getMessage()}</h1>`
})
export class AppComponent { }
Please advise.
2017-01-14_15-58-42.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.