angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

State successfully transitions into another state but the template remains de same #3673

Closed prochafilho closed 6 years ago

prochafilho commented 6 years ago

This issue tracker is for Bug Reports and Feature Requests only.

Please direct requests for help to StackOverflow. See http://bit.ly/UIR-SOF for details.

This is a (check one box):

My version of UI-Router is: (type version) @uirouter/angularjs 1.0.1

Bug Report

Current Behavior:

(type current behavior here) I have a controller method to call another state when a button is pressed. I am using $state.go to transition to a different state programmatically. The template does not change after the call to $state.go. I have attached a Transition Hook, and it says it transitioned successfully but, to no avail. I noticed that the controller for the component that is being rendered does not gets instantiated.

Expected Behavior:

(type expected behavior here) To transit into a different state and the template to reflect the current state.

Link to Plunker or stackblitz that reproduces the issue:

( if you want a response to your issue, provide a way to reproduce it ) ( http://bit.ly/UIR-Plunk1 ) ( https://stackblitz.com/edit/ui-router-angularjs )

Feature Request

(type feature request here)

General Query

Please direct general implementation questions to StackOverflow: http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router

Please review the Sample Application which highlights common approaches: https://github.com/ui-router/sample-app-angularjs

(type general query here)

christopherthielen commented 6 years ago

Please post a reproduction using the links provided (stackblitz or plunker). Link to your stackoverflow question. This issue doesn't provide any details, and will be closed because of that.