Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
storybook-addon-angular-router
Advanced tools
Addon to enable logging and mocking for the angular router in storybook
A simple plugin to make working with the angular router in storybook easier
Install the addon via npm:
npm i storybook-addon-angular-router
Add it to your storybook configuration:
// .storybook/main.js
module.exports = {
addons: ["storybook-addon-angular-router"],
};
Every call to navigate
and navigateByUrl
on the router is now logged in the action
panel together with all parameters.
If you want to test the routerLinkActive
directive in your story
you can set the active route for the story like this:
export const WithActiveLink = Template.bind({});
WithActiveLink.parameters = {
angularRouter: {active: '/location/1'}
};
If you want to disable the plugin for a single story you can add the following parameter to your story:
export const DisabledPlugin = Template.bind({});
DisabledPlugin.parameters = {
angularRouter: {disable: true}
}
The plugin adds the RouterTestingModule
and a custom
Router
implementation to your stories.
The custom Router
implementation provides
only the most basic functionality needed to use it in your stories.
FAQs
Addon to enable logging and mocking for the angular router in storybook
The npm package storybook-addon-angular-router receives a total of 3,274 weekly downloads. As such, storybook-addon-angular-router popularity was classified as popular.
We found that storybook-addon-angular-router demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.