Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Last active February 10, 2020 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/6c0fc47a8b24e4ed2288aca9a01f1181 to your computer and use it in GitHub Desktop.
Save IntegerMan/6c0fc47a8b24e4ed2288aca9a01f1181 to your computer and use it in GitHub Desktop.
import {moduleMetadata, storiesOf} from '@storybook/angular';
import {AppModule} from '../app.module';
import {HeaderComponent} from './header.component';
storiesOf('Header', module)
.addDecorator(moduleMetadata({ imports: [ AppModule ]}))
.add('Score 0', () => ({
component: HeaderComponent,
props: {
Score: 0
},
}))
.add('Score 10000', () => ({
component: HeaderComponent,
props: {
Score: 10000
},
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment