#How to create custom render function including parameters for angular?

2 messages · Page 1 of 1 (latest)

inland flicker
#

Hello,
I try to write an own render function for a story, mostly to include an Angular Template reference variable, something like this:
<app-mybutton #startButton></app-mybutton>
This works, however, no properties are now assigned to mybutton. Do I need to somehow whitelist them with a syntax like name="args.name" or something like this? I saw this somewhere, but could not find an example for angular. I'd prefer to not need to list them explicitely, but if this is required, I am also happy with it.

inland flicker
#

Looks like this is the syntax:
``` template: <story-example [inpOne]="inpOne" [inpTwo]="inpTwo"></story-example>