Skip to content

have any example about reuse some components with params in a page viewΒ #22

@i2Echo

Description

@i2Echo
import { Test } from "./components/test/test";
import { component } from 'knockout-decorators';

@component("app", `
  <div id="app">
    <test></test>
  </div>   
`)
export class App {
    constructor() {  
       new Test();
    }
}

It's work.

But, if i wanna give some params to test component, how can i do that;
and more 'test' compoent instance with diffrient params in that page?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions