Golden Layout Anulgar 2+/ng-golden-layout [英] Golden Layout Anulgar 2+ / ng-golden-layout
问题描述
首先,我想说我是一名初级前端开发人员.因此,没有太多使用Angular的经验.
I would like to start by saying that I'm a junior Front-End Developer. So, not much experience with Angular.
因此,我一直在尝试以金黄布局在Angular 2中工作,我的最终目标是从此模块重现拖动功能,如下所示:
So I've been trying to get something to work in Angular 2 with golden layout, my final goal is to reproduce the drag functionality from this module, as represented here: http://golden-layout.com/examples/#d508753b29c3001c24218bf3a6b25141
由于到目前为止尚未对Angular 2提供官方支持,因此我一直在寻找一种实现方法,并且遇到了@ goldsam/ng-golden-layout模块
Since there's no official support for Angular 2 so far, I've been looking for a way to implement that and I came across the module @goldsam/ng-golden-layout
这是角度2的金色布局的非正式发布,我一直在尝试使用此模块创建演示应用,但似乎无法使其正常工作,我被以下错误困住了:>
It's an unoficial release of golden layout for angular 2, and I've been trying to create a demo app using this module, but can't seem to get it to work, I'm stuck with this errors:
C:/用户/用户/桌面/golden-layout/demo/node_modules/golden-layout/index.d.ts(14,16)中的错误:找不到名称"JQuery". C:/Users/用户/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts(63,79):找不到名称"JQuery". C:/Users/用户/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts(133,45):找不到名称"JQuery". C:/Users/用户/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts(629,22):找不到名称"JQuery". C:/Users/用户/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts(718,16):找不到名称"JQuery". C:/用户/用户/桌面/golden-layout/demo/node_modules/golden-layout/index.d.ts(723,22):找不到名称"JQuery". C:/Users/用户/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts(728,26):找不到名称"JQuery". C:/Users/用户/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts(770,16):找不到名称"JQuery". C:/Users/用户/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts(775,21):找不到名称"JQuery". C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts(780,21):找不到名称"JQuery".
ERROR in C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (14,16): Cannot find name 'JQuery'. C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (63,79): Cannot find name 'JQuery'. C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (133,45): Cannot find name 'JQuery'. C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (629,22): Cannot find name 'JQuery'. C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (718,16): Cannot find name 'JQuery'. C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (723,22): Cannot find name 'JQuery'. C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (728,26): Cannot find name 'JQuery'. C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (770,16): Cannot find name 'JQuery'. C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (775,21): Cannot find name 'JQuery'. C:/Users/user/Desktop/golden-layout/demo/node_modules/golden-layout/index.d.ts (780,21): Cannot find name 'JQuery'.
所以我的问题是,你们是否有这个模块可以在我可以用作入门的演示应用程序中使用,或者你们中的任何一位大师都可以对我的代码进行审查:
So my question is if any of you guys had got this module to work in some demo app that I could use as a start, or if any of you gurus could make a review at my code:
https://github.com/dazzzed/ng-gl-demo
谢谢.
推荐答案
是的,甚至我也遇到了这个问题,我只是将Jquery导入了这样的应用模块内
Yes this problem came with me even, i just imported Jquery inside app module like this
import * as Jquery from 'jquery';
类似地,您可能必须导入Goldenlayout.
Similarly you might have to import Goldenlayout.
这将解决您的问题:)
这篇关于Golden Layout Anulgar 2+/ng-golden-layout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!