小编gba*_*rry的帖子

使用打字稿的 Angular 6 的黄金布局?

我按照本教程使用 Angular 6 的黄金布局。

我收到错误GoldenLayoutModule.forRoot(config)

config 不可分配给 type 的参数GoldenLayoutConfiguration。

import { AppComponent } from './app.component';
import { GoldenLayoutModule, GoldenLayoutConfiguration } from '@embedded-enterprises/ng6-golden-layout';
import * as $ from 'jquery';

// It is required to have JQuery as global in the window object.
window['$'] = $;

// const config: GoldenLayoutConfiguration { /* TODO */ };


let config = {
  content: [{
      type: 'row',
      content:[{
          type: 'component',
          componentName: 'testComponent',
          componentState: { label: 'A' }
      },{
          type: 'column', …
Run Code Online (Sandbox Code Playgroud)

typescript golden-layout angular6

6
推荐指数
1
解决办法
4275
查看次数

标签 统计

angular6 ×1

golden-layout ×1

typescript ×1