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.
Angular Gantt Editor (wrapper for [jsgantt-improved](https://github.com/mariohmol/jsgantt-improved)). View/Edit Gantt file with formatting.
Angular Gantt Editor (wrapper for jsgantt-improved). View/Edit Gantt file with formatting.
Working with latest Angular 6.
To install this library with npm, run below command:
$ npm install --save jsgantt-improved ng-gantt
First, Import Angular GanttEditor module in root
import { NgGanttEditorModule } from 'ng-gantt'
@NgModule({
declarations: [
AppComponent
],
imports: [
....,
NgGanttEditorModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Then setup your component models as below :
import { Component, ViewChild } from '@angular/core';
import { GanttEditorComponent, GanttEditorOptions } from 'ng-gantt';
@Component({
selector: 'app-root',
template: '<ng-gantt [options]="editorOptions" [data]="data"></ng-gantt>',
styleUrls: ['./app.component.css']
})
export class AppComponent {
public editorOptions: GanttEditorOptions;
public data: any;
@ViewChild(GanttEditorComponent) editor: GanttEditorComponent;
constructor() {
this.editorOptions = new GanttEditorOptions()
this.data2 = [{
'pID': 1,
'pName': 'Define Chart API',
'pStart': '',
'pEnd': '',
'pClass': 'ggroupblack',
'pLink': '',
'pMile': 0,
'pRes': 'Brian',
'pComp': 0,
'pGroup': 1,
'pParent': 0,
'pOpen': 1,
'pDepend': '',
'pCaption': '',
'pNotes': 'Some Notes text'
}];
}
}
Note : For better styling, add below line to your main style.css file
@import "~jsgantt-improved/dist/jsgantt.css";
Demo component files are included in Git Project.
When publishing it to npm, look over this docs: https://docs.npmjs.com/misc/developers
MIT(./LICENSE)
FAQs
Angular Gantt Editor (wrapper for [jsgantt-improved](https://github.com/jsGanttImproved/jsgantt-improved)). View/Edit Gantt file with formatting.
The npm package ng-gantt receives a total of 354 weekly downloads. As such, ng-gantt popularity was classified as not popular.
We found that ng-gantt 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.