0

I am implementing an Event Handler using Angularjs. User can insert an event and the relevant date. All the details of an event will be stored in an array (which is in controller.js file). Then I need to find out the event with closest date to the current date and display it on the UI. ( I am displaying the all the other events using ng-repeat. Also I want to display this part as the upcoming event)

Since I am a newbie to Angularjs, I couldn't understand some solutions on the web. Can you suggest me a best solution to achieve this? Also what is the best way to add a calendar to the UI?

Thanks in advance!

1 Answer 1

1

Use module like below which has afterWhere filter or write filter by your self to filter your events array by given date and filter out events after that date.

https://github.com/a8m/angular-filter

For calendar, use this module.

https://angular-ui.github.io/ui-calendar/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.