Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

255
Views
¿Cómo dar un `TemplateRef` como un argumento `@Input` a una historia?

Estoy tratando de hacer una historia que use un componente que tome un TemplateRef como @Input . Pero no puedo entender cómo.

componente de prueba

 @Component({ selector: 'test', templateUrl: './test.component.html', }) export class TestComponent { @Input() public set value(value: TemplateRef<void>) { // ... } }

Historia

 export default { title: 'Components/Test', component: TestComponent, } as Meta; const Template: Story<TestComponent> = (args) => ({ props: args, }); export const TemplateRefStory = Template.bind({}); TemplateRefStory.args = { value: ???, // <-- what do I put here? };

He intentado una variedad de cosas, son similares a las siguientes. Lo cual realmente no tiene sentido.

 export const TemplateRef: Story<TestComponent> = (args) => ({ template: `<ng-template #hello>Hello</ng-template>`, props: args, }); TemplateRef.args = { value: '#hello', };
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!