Describe the bug
When using props on a component, the values of the knobs are not available in the component.
To Reproduce
See code snippet
Expected behavior
I expect the value within the component to be updated when I type in the text knob
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
import {storiesOf, moduleMetadata} from '@storybook/angular';
import {Component, Input} from '@angular/core';
import {withKnobs, text} from '@storybook/addon-knobs';
import {FormsModule} from '@angular/forms';
@Component({
selector: 'simple-component',
template: `
{{ name || 'default' }}
<input type="text" [(ngModel)]="name" />
`,
})
export class SimpleComponent {
@Input() name: string;
}
storiesOf('component', module)
.addDecorator(withKnobs)
.addDecorator(
moduleMetadata({
imports: [FormsModule],
declarations: [SimpleComponent],
}),
)
.add('notWorking', () => ({
component: SimpleComponent,
props: {
name: text('Name', 'outer name'),
},
}));
System:
Below I expected to see 'Updated' (which is the value typed in the knob)next to the input but it still shows the default value

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
Hey, has anybody had a chance to look at this? It's not blocking as we can wrap the component in a template but it's extra effort to duplicate the bindings when they're already there.
Thanks a lot
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
I'm also seeing this issue...
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!
also having this problem
Hi all,
I've found a workaround. Use functions!!
As you may know, React is all about functions and so are knobs, with this approach, you have instant responsiveness:
...
.add('your story here', () => ({
template: `
<your-component-here
[customHeight]="height()">
</your-component-here>
`,
props: {
height: () => number('height', 50)
},
}));
The issue is still there.
Most helpful comment
Hey, has anybody had a chance to look at this? It's not blocking as we can wrap the component in a template but it's extra effort to duplicate the bindings when they're already there.
Thanks a lot