ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Is nav-view a pure implementation of ui-view from the ui-router

Open JonathanHindi opened this issue 12 years ago • 5 comments

I am having troubles to get ui-calendar to work in a nav-view directive which as far as I know is a fork or implementation of the ui-view of the ui-router package.

Here's a plunker that show the issue, the calendar sometimes load and some others doesn't load at all.

I reported the issue with both ui-calendar angular-ui/ui-calendar#69 and ui-router angular-ui/ui-router#820

I am afraid that it could be related to ionic's implementation of ui-view, here's another plunker show that it works with ngView. Please accept my apologies for the too many cross references.

JonathanHindi avatar Jan 25 '14 10:01 JonathanHindi

For isolation of concerns, I removed ionic and tried to implement it using only ui-router's ui-view directive and ui-calendar in this plunker and it works, which affirms that the issue is related to ionic implementation of the nav-view directive.

Can you check this issue? Thanks for the hard work.

JonathanHindi avatar Jan 25 '14 10:01 JonathanHindi

@mlynch Do you have any input on this?

JonathanHindi avatar Jan 28 '14 17:01 JonathanHindi

Yes the nav-view is a fork of the ui-view, version 0.2.7 (the active release for UI Router is currently at 0.2.8 but has some issues at the moment with nested directives with transclusion).

I forked the plunker and set the ionic version to 0.9.21, and also removed some dependencies you didn't need. I didn't come across any errors, can you verify its working as expected? http://plnkr.co/edit/r29uosjWBpZPNZaDetsu?p=preview

adamdbradley avatar Jan 29 '14 04:01 adamdbradley

Thanks @adamdbradley, It's working now maybe there was a conflict in 9.20. Anyway right now I see that if you opened the calendar view and navigate to another route or for example clicked on one of the events to go to the event details then navigated back to the calendar view, the calendar events doesn't load again, I will take a closer look on this but If you have any suggestions I will be thankful. :+1:

JonathanHindi avatar Jan 29 '14 09:01 JonathanHindi

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 06 '18 03:09 ionitron-bot[bot]