我曾经在我的控制台执行以下命令:如何发布角2应用与角2 CLI +的WebPack
ng build --prod
和我的DIST文件夹已与以下文件生成:
我他们上传到我的虚拟主机,并得到了以下错误:
polyfills.c27b87b….bundle.js:1 Unhandled Promise rejection: Template parse errors:
Can't bind to 'item' since it isn't a known property of 'simple-notification'.
1. If 'simple-notification' is an Angular component and it has 'item' input, then verify that it is part of this module.
2. If 'simple-notification' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("<simple-notification
*ngFor="let a of notifications; let i = index"
[ERROR ->][item]="a"
[timeOut]="timeOut"
[clickToClose]="clickToClose"
与我在我的应用程序中使用的简单通知包的许多不同错误。
除了生成的dist文件夹以外,还需要上传哪些内容才能发布我的应用程序?
看起来像一个与您SimpleNotification做一个运行时错误 零件。你有一个@Input称为项目? https://angular.io/docs/ts/latest/cookbook/component-communication.html#!#parent-to-child – itamar
命令ng serve --prod是否有效? –
@itamar嗯..我不 – TheUnreal