Closed yasserht closed 7 years ago
Please provide link to minimally-working plunker that reproduces the issue (starter template: http://plnkr.co/edit/LE4F4U7AnnD3tjM9ZH4G?p=preview)
Are you sure you set up angular and it's modules correctly? Are you sure you have JS enabled in your browser?
Thank you I do have JS enabled and I guess Im using modules in the right way, but still no calendartitle here's a plunker http://plnkr.co/edit/UHjZ0ROqx7ijrsQLrsRA?p=preview when i click the remove icon instead of showing an alert i want it to delete that event
Lines 14-16 in example.js
of your plunker show:
onClick: function(args) {
alert.show('Deleted', args.calendarEvent);
}
There is no code, that would delete the event.
And I can't see where are you trying to use {{ calendarTitle }}
Yes, I used vm.events.splice() but it's not working, what should I write ?
vm.events.splice(args.calendarEvent.calendarEventId, 1)
seems to be working for me
just tried it, working perfectly Thank youu
what if we're using it in an html page is it the same ng-click="vm.events.splice()" also can I show only {{ calendarTitle }} on a page without the calendar ?
Depends how and where you want to use it.
im using 8+ calendars in parallel , `
I'm still not able to help you until you provide me with a plunker that reproduces the issue.
I used <h1 class="text-center">{{ vm.viewTitle }}</h1>
instead and it's working
Thank you
Hello Matt, I tried using {{ calendarTitle }} but it's not showing anything ( I'm using multiple calendars in the same page). Also Delete button is not deleting events even in the demo you provided. Thank you in advance