Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
angular2-widgets-manager
Advanced tools
Angular2 dynamic components grid, based on widgets concept
Angular2 dynamic components grid, based on widgets concept.
First, installation:
$ npm install angular2-widgets-manager
Now, in order to use it you will probably need to configure it as UMD (for SystemJS/Webpack). So don't forget to include the main file:
node_modules/angular2-widgets-manager/dist/main.js
Here's a code example to add it in your AppModule:
import { NgModule } from '@angular/core';
import { WidgetsManagerModule } from '../../src/main';
import { WidgetsManagerService } from '../../src/widgets-manager.service';
@NgModule({
imports: [WidgetsManagerModule.forRoot()],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {
constructor() {
// This line is important as it passes YOUR module, the one
// from which the manager will get the widgets components
WidgetsManagerService.provideWidgetsModule(WidgetComponentsModule.forRoot());
}
}
<widgets-grid (onDragStart)="doSomethingOnDragStart($event)"
[componentsDetails]="componentsDetails"
[gridConfig]="gridConfig"></widgets-grid>
You can find NgGridConfig
in angular2-grid
interface ComponentDetails {
id?: string | number;
name: string;
html: string;
gridItemConfig: NgGridItemConfig;
}
You can find NgGridItemConfig
in angular2-grid
FAQs
Angular2 dynamic components grid, based on widgets concept
We found that angular2-widgets-manager 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.