4

I have an issue with the rendering of the angular UI calendar. My app has several views that we use to navigate in between using routes. The main page has the angular calendar and when we load the main page the calendar loads fine. But when we navigate away from this page and comes back, the calendar failed to load and only the header part gets loaded with the title and the buttons. If a button (eg- month) is clicked then the whole calendar loads up again.

Is this something to do with rendering? any output is highly appreciated.

 [1]: http://jsfiddle.net/fECuY/4/ "jsfiddle"
4
  • 1
    im assuming you are using templates to load into this main page? so essentially the requests are async does the calendar provide an init method? Commented Aug 14, 2013 at 12:19
  • yes am using templates.. no init method defined in the calendar controller..only uiConfig and eventSources methods are defined.(as indicated by my jdfiddle) Commented Aug 14, 2013 at 12:57
  • 1
    the reason i asked about the init is because when leave the main page and then return to the main page since there is no full refresh the calendar will not load due to the js scripts related to calendar are already on the page. However when an action such a button click occurs to change calendar ui it will render the calendar because it already has the necessary actions tied to that button... Commented Aug 14, 2013 at 13:34
  • 1
    yes the calendar has a render method. arshaw.com/fullcalendar/docs/display/render Commented Aug 14, 2013 at 14:14

1 Answer 1

2

I have resolved this issue by using resizing the window where the calendar got rendered within a timeout function.

Still I want to know how this render method can be used to re- render this calendar again. (in angular context)

arshaw.com/fullcalendar/docs/display/render example is catered for jquery..

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

2 Comments

Could you explain how you resized the window?
can use $window.innerWidth;

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.