
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
ng2-sidebar
Advanced tools
An Angular 2 sidebar component.
npm install --save ng2-sidebar
Import the component and add it to the list of directives on your component:
import { Sidebar } from 'ng2-sidebar';
@Component({
selector: 'example',
directives: [Sidebar],
template: `
<ng2-sidebar [(open)]="_open">
<p>Sidebar contents</p>
</ng2-sidebar>
<button (click)="_toggleSidebar()">Toggle sidebar</button>
`
})
export class MyComponent {
private _open: boolean = false;
private _toggleSidebar() {
this._open = !this._open;
}
}
[(open)]="boolean_value"
Boolean input value that controls the visibility of the sidebar. This should be two-way bound in case
the value changes when the sidebar is closed by clicking outside of it when closeOnClickOutside
is
enabled.
Default: false
.
[pullRight]="boolean_value"
Boolean input value that controls if the sidebar should appear on the right side of the viewport.
Default: false
.
[closeOnClickOutside]="boolean_value"
Boolean input value that controls whether clicking outside of the open sidebar will close it.
Default: false
.
[showOverlay]="boolean_value"
Boolean input value that controls if a translucent black overlay should appear over the page contents when the sidebar is open.
Default: false
.
[defaultStyles]="boolean_value"
Applies some default styles to the sidebar.
Default: false
.
[sidebarClass]="'string_value'"
A string used as an additional class name on the sidebar element.
[overlayClass]="'string_value'"
A string used as an additional class name on the overlay element.
[ariaLabel]="'string_value'"
A string used as the aria-label
attribute on the sidebar.
(onOpen)="func_call()"
An output event, emitted when the sidebar is opened.
(onClose)="func_call()"
An output event, emitted when the sidebar is closed.
FAQs
[DEPRECATED] Renamed to ng-sidebar.
The npm package ng2-sidebar receives a total of 2 weekly downloads. As such, ng2-sidebar popularity was classified as not popular.
We found that ng2-sidebar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.