小编Dav*_*nks的帖子

如何在 angular2 模板中使用 Electron 的 webview html 元素?

我看到这个问题:How to use Electron's <webview> inside Angular2 app?

\n\n

它让我克服了最初的错误,但现在我看到了

\n\n
zone.js?1478729974810:355 Unhandled Promise rejection: Template parse errors:\n\'webview\' is not a known element:\n1. If \'webview\' is an Angular component, then verify that it is part of this module.\n2. If \'webview\' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the \'@NgModule.schemas\' of this component to suppress this message. ("url" [src]="paper.url | path" [original-size]="false" [show-all]="true"></pdf-viewer-->\n            [ERROR ->]<webview id="inlinePaper" attr.src="{{paper.url | path}}" disablewebsecurity></webview>\n        </div"): PaperComponent@45:12 ; Zone: <root> ; Task: Promise.then ; …
Run Code Online (Sandbox Code Playgroud)

javascript webview electron angular2-template angular

2
推荐指数
1
解决办法
3256
查看次数