Search code examples
angularjsangularjs-serviceangularjs-routing

Angularjs route with unchanged data, avoid re-rendering templates for controllers for that route?


If I am changing a route, and the data for that route has not changed, can I avoid re-rendering my templates for the controllers for that route?


Solution

  • thanks Stu. I don't think I need ui-router. I think my question was not simple enough (I simplified it just now) - sorry about that, and thanks again for your answer.

    I actually can just use the reload on search feature. This does require me to change my urls, which isn't ideal, but it's an acceptable compromise to get what I want easily:

    See: Can you change a path without reloading the controller in AngularJS?