Controller does not execute when I return to the same state

0

Hello, I have a problem with angular and ionic 1 I have a restaurant market place app, similar to ifood, I have an order flow and as the steps go by I save the order data in a place on the siteStorage, at the end of the flow (shopping cart) I get this data from the localStorage and show to user! The order flow in my app: I add a main product, I add an Optional, I add a plugin.

Whether or not to skip one of these parts, such as choosing an option and going straight to the cart!

My scenario explained, my problem is this: when I do not add an option, when I get to the cart, the angle does not execute the cart controller, and does not bind the new items it has in my localStorage.

I have not identified anything very different in the optional controllers / add-ons and have already tried some things like clearing cache.

Plugins and option controllers code: link

Route code: link

In the template of the cart I just do an ng-repeat in the data that comes from localStorage.

    
asked by anonymous 08.12.2016 / 17:00

0 answers