{"id":18187980,"url":"https://github.com/alterx/storybook-angular-wrapper","last_synced_at":"2026-07-16T23:32:01.764Z","repository":{"id":67823765,"uuid":"145041289","full_name":"alterx/storybook-angular-wrapper","owner":"alterx","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-16T21:42:03.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T13:47:25.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alterx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-16T21:34:18.000Z","updated_at":"2018-08-16T21:42:04.000Z","dependencies_parsed_at":"2023-02-22T15:30:15.927Z","dependency_job_id":null,"html_url":"https://github.com/alterx/storybook-angular-wrapper","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"901ab6eb29449ff4b277a9a5deb395f56d95f845"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alterx/storybook-angular-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alterx%2Fstorybook-angular-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alterx%2Fstorybook-angular-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alterx%2Fstorybook-angular-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alterx%2Fstorybook-angular-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alterx","download_url":"https://codeload.github.com/alterx/storybook-angular-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alterx%2Fstorybook-angular-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017153,"owners_count":26085983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-03T02:04:15.059Z","updated_at":"2025-10-13T22:33:04.012Z","avatar_url":"https://github.com/alterx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Storybook Angular Wrapper\n\nThis decorator allows you to wrap all your stories with a template:\n\n```typescript\nimport { storiesOf, moduleMetadata } from '@storybook/angular';\nimport { angularWrapper } from 'storybook-angular-wrapper';\nimport { YourModule } from '../path/to/your.module';\n\nstoriesOf('Your component', module)\n  .addDecorator(\n    moduleMetadata({\n      imports: [YourModule],\n    }),\n  )\n  .addDecorator(\n    angularWrapper(\n      `\n        \u003cdiv style=\"margin: 3em\"\u003e\n        @{template}\n        \u003c/div\u003e`,\n      '@{template}',\n    ),\n  )\n  .add('with items', () =\u003e ({\n    template: `\n        \u003cyour-component [prop1]=\"prop1\"\u003e\u003c/your-component\u003e\n    `,\n    props: {\n      prop1: [\n        {\n          id: 1,\n          first: 'Carlos',\n          last: 'Vega',\n          handle: '@alterx',\n          status: 'active',\n        },\n      ],\n    },\n  }))\n  .add('no items', () =\u003e ({\n    template: `\n        \u003cyour-component [prop1]=\"prop1\"\u003e\u003c/your-component\u003e\n    `,\n    props: {\n      prop1: [],\n    },\n  }));\n```\n\nThis will result in a `3em` margin applied to both stories.\n\n# Installation\n\n`yarn add -D storybook-angular-wrapper`\n\nor\n\n`npm i --save-dev storybook-angular-wrapper`\n\n# Disclaimer\n\nThis works better with `template` stories, it does support `component` stories but this is a mode that's limited and should only be used under certain very specific circumstances.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falterx%2Fstorybook-angular-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falterx%2Fstorybook-angular-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falterx%2Fstorybook-angular-wrapper/lists"}