0

how to use golden layout in angular 9 and how to render multiple components html in golden layout page.

 private layoutConfig!: LayoutConfig;
 private gl = new GoldenLayout();
  constructor() { }
  ngOnInit(): void {
  
  
    this.layoutConfig = {
      root: {
        type: "row",
        content: [
          {
            type: "component",
            componentType: "Test",
            
            
          },
          {
            type: "component",
            componentType: "Test 2"
          }
        ]
      }
      
    //  this.myLayout = new GoldenLayout( this.config );
  
    }
   
    
    this.gl.registerComponentFactoryFunction("Test", (container, itemConfig) => {});
R. Richards
  • 24,603
  • 10
  • 64
  • 64

0 Answers0