storybook/docs/snippets/angular/list-story-starter.ts.mdx
2021-02-02 00:50:49 +00:00

28 lines
552 B
Plaintext

```ts
// List.stories.ts
import { Story, Meta } from '@storybook/angular/types-6-0';
import { moduleMetadata } from '@storybook/angular';
import { CommonModule } from '@angular/common';
import List from './list.component';
export default {
title: 'List',
component: List,
decorators: [
moduleMetadata({
declarations: [List],
imports: [CommonModule],
}),
],
} as Meta;
// Always an empty list, not super interesting
const Template: Story<List> = (args) => ({
props: args,
template: `<app-list></app-list>`,
});
```