Angularjs And Reloading And Redirect After Submit Using Ui.router
Kinda new new angular. I have a page where I fillout a form and do a post. I then want to do a full browser reload and be redirect to another page called 'created.html'. I have
Solution 1:
Try this
$state.transitionTo($state.current, {}, { //second parameter is for$stateParams
reload: true,
inherit: false,
notify: true
});
Also try
$state.transitionTo('redirect.second', toParams, {
location:true, inherit:false, reload:true, notify:true });
OR
$state.transitionTo('redirect.second', toParams, { location:true, inherit:true, reload:true, notify:true });
Also see the link Reloading current state - refresh data
Post a Comment for "Angularjs And Reloading And Redirect After Submit Using Ui.router"