Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
ap-angular2-fullcalendar
Advanced tools
An Angular 2 component for fullcalendar.
npm install angular2-fullcalendar --save
####Import the calendar component
import {CalendarComponent} from "angular2-fullcalendar/src/calendar/calendar";
// other imports
@NgModule({
declarations: [
// other declarations
CalendarComponent
],
// ...
})
export class AppModule {}
For a full list of options available, please refer to fullcalendar.io documentation at https://fullcalendar.io/docs/
@Component({
selector: 'my-component',
templateUrl: 'my-component.html'
})
export class MyComponent{
calendarOptions:Object = {
height: 'parent',
fixedWeekCount : false,
defaultDate: '2016-09-12',
editable: true,
eventLimit: true, // allow "more" link when too many events
events: [
{
title: 'All Day Event',
start: '2016-09-01'
},
{
title: 'Long Event',
start: '2016-09-07',
end: '2016-09-10'
},
{
id: 999,
title: 'Repeating Event',
start: '2016-09-09T16:00:00'
},
{
id: 999,
title: 'Repeating Event',
start: '2016-09-16T16:00:00'
},
{
title: 'Conference',
start: '2016-09-11',
end: '2016-09-13'
},
{
title: 'Meeting',
start: '2016-09-12T10:30:00',
end: '2016-09-12T12:30:00'
},
{
title: 'Lunch',
start: '2016-09-12T12:00:00'
},
{
title: 'Meeting',
start: '2016-09-12T14:30:00'
},
{
title: 'Happy Hour',
start: '2016-09-12T17:30:00'
},
{
title: 'Dinner',
start: '2016-09-12T20:00:00'
},
{
title: 'Birthday Party',
start: '2016-09-13T07:00:00'
},
{
title: 'Click for Google',
url: 'http://google.com/',
start: '2016-09-28'
}
]
};
}
}
<angular2-fullcalendar [options]="calendarOptions"></angular2-fullcalendar>
If you're using Angular CLI, this is as simple as including one line in your style.css file:
@import "fullcalendar/fullcalendar.min.css";
Alternatively, you can just reference the file directly. This would look something like
<link href="node_modules/fullcalendar/fullcalendar.min.css" rel="stylesheet">
####Use CalendarComponent as a ViewChild
export class MyComponent{
@ViewChild(CalendarComponent) myCalendar: CalendarComponent;
changeCalendarView(view) {
this.myCalendar.fullCalendar('changeView', view);
}
FAQs
Angular component for FullCalendar
The npm package ap-angular2-fullcalendar receives a total of 197 weekly downloads. As such, ap-angular2-fullcalendar popularity was classified as not popular.
We found that ap-angular2-fullcalendar 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.