Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

TODO for angular conversion #138

Open
6 tasks
zackarychapple opened this issue Aug 7, 2014 · 9 comments
Open
6 tasks

TODO for angular conversion #138

zackarychapple opened this issue Aug 7, 2014 · 9 comments

Comments

@zackarychapple
Copy link

  • removal of jQuery dependency
  • removal of jQuery-ui dependency
  • removal fullCalendar.js dependency
  • removal fullCalendar.css dependency
  • css to SCSS
  • convert gcal plugin
@Urigo
Copy link
Contributor

Urigo commented Aug 21, 2014

What do you think about my pull request of ui-bootstrap's date picker?
Look at the example:
angular-ui/bootstrap#2619

It might be a good start no?

@mattcasey
Copy link

For the record, if you update ui-calendar to support fullcalendar.js 2.1.0, you can cross out jquery-ui dependency. It would also be a good step before trying to remove CSS dependency since they removed tables for layout: https://github.com/arshaw/fullcalendar/releases

My two cents, though: I think this 'issue' is not just an issue, but a proposal for a whole other project. ui-calendar is ~200 lines, fullcalendar is ~7000, and it doesn't seem like you can easily remove any one of fullcalendar's dependencies without first removing fullcalendar. Also, after you remove fullcalendar, I'm sure the calendars will grow to provide different features. I don't mean to debate the value of an Angular-only calendar, but maybe some people just want a wrapper around fullcalendar, and they'll be stuck with a legacy version of ui-calendar that won't be maintained. I'm curious if this perspective has been considered?

@Urigo
Copy link
Contributor

Urigo commented Aug 22, 2014

@mattcasey I agree with you, and once fullcalendar 2.1.0 will be out of beta i'm going to merge it as well, but I think those are to parallel things.
And don't forget - you are comparing JQuery lines of code to Angular lines of code and ui-bootstrap's datepicker has a lot of them as well :)

@joshkurz
Copy link
Contributor

I agree that when we do create a new angular only calendar, it should be in
its own repo.
On Aug 21, 2014 5:16 PM, "Matt Casey" [email protected] wrote:

For the record, if you update ui-calendar to support fullcalendar.js
2.1.0, you can cross out jquery-ui dependency. It would also be a good step
before trying to remove CSS dependency since they removed tables for
layout: https://github.com/arshaw/fullcalendar/releases

My two cents, though: I think this 'issue' is not just an issue, but a
proposal for a whole other project. ui-calendar is ~200 lines, fullcalendar
is ~7000, and it doesn't seem like you can easily remove any one of
fullcalendar's dependencies without first removing fullcalendar. Also,
after you remove fullcalendar, I'm sure the calendars will grow to provide
different features. I don't mean to debate the value of an Angular-only
calendar, but maybe some people just want a wrapper around fullcalendar,
and they'll be stuck with a legacy version of ui-calendar that won't be
maintained.


Reply to this email directly or view it on GitHub
#138 (comment)
.

@mattcasey
Copy link

That's great to hear, guys. I think we're all on the same page. It just was not very obvious :)

I also think the angular-calendar could have a much nicer API, another reason to have a different project.

@Urigo
Copy link
Contributor

Urigo commented Aug 22, 2014

Cool. so what do you think about my pull request? ;)

@mattcasey
Copy link

It's funny, datepicker was one of the reasons I am using angular-strap alongside ui-bootstrap. It was back in April that I had to choose, I can't remember the exact feature that was missing at the time, though. Looking at it now, seems like I could use either.

I recently issued a PR to angular-strap to add a class for today's date, and was wondering if a more generic solution like yours would be better! So I like the update and can see it as a benefit over other datepickers, though not sure why it would not make me more likely to use fullcalendar.

@zackarychapple
Copy link
Author

I'll just drop this here. https://github.com/angular-ui/ui-calendar2

@Urigo
Copy link
Contributor

Urigo commented Aug 24, 2014

@mattcasey In one of my apps, I had to create a calendar similar to AirBnB's calendar. it means that I need to have general statuses by day on the calendar and if I click on a specific date I can edit it's properties (like availability).
I think this is a very common use case and a lot of people use calendar for that reason.
So that pull request offers a very general solution for that need.
Maybe you can specify your use cases and I can see if and how this pull request can solve those as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants