
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
ng2-material-dropdown
Advanced tools
Material-like dropdown component for Angular2.
Work in progress
npm install ng2-material-dropdown --save
TODO
Once installed, import the directives and use it them your container component:
// example.html
<ng2-dropdown>
<ng2-dropdown-button>
Open Menu
</ng2-dropdown-button>
<ng2-dropdown-menu>
<ng2-menu-item *ngFor="let page of pages">
{{ page }}
</ng2-menu-item>
<ng2-menu-divider></ng2-menu-divider>
<ng2-menu-item>
With Divider
</ng2-menu-item>
</ng2-dropdown-menu>
</ng2-dropdown>
// app.ts
// import all needed directives
import { NG2_DROPDOWN_DIRECTIVES } from 'ng2-material-dropdown';
@Component({
selector: 'app',
directives: [ ...NG2_DROPDOWN_DIRECTIVES ],
template: require('./example.html')
})
export class App {
pages = ['Home', 'Explore', 'Help'];
}
preventClose
- [?boolean]
: if present, this attribute prevents the menu to hide when the menu item is clicked
FAQs
Angular material-like dropdown component
The npm package ng2-material-dropdown receives a total of 22,248 weekly downloads. As such, ng2-material-dropdown popularity was classified as popular.
We found that ng2-material-dropdown 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.