Base solution for your next web application
Open Closed

ngroute is broken and .sucess() not available after upgrade #2365


User avatar
0
sagreven created

Hi,

I upgraded verything from ABP from 1.0.0 to 1.3.1. I also update some other packages (in fact all). However I ran into the dynamics problem and went back to 1.4.11 as suggested. Still two problems left:

Problem 1: I got an error that the success methoda as schon here (<a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API">http://aspnetboilerplate.com/Pages/Docu ... ic-Web-API</a>) is not working and then I came on the brilliant idea changing all the code to the suggested solution I found here (<a class="postlink" href="https://docs.angularjs.org/api/ng/service/$http">https://docs.angularjs.org/api/ng/service/$http</a>); shortly using .then with callbacks. This is working fine instead that the result is not the "pure" data i got before but is now the complete ajax request. Is this intented to be or did I miss something?

Problem 2: Non of my route links are working any more. When I try to navigate to /#/users i got redirected to /#!/. Perhaps this also has to do with my update competition. But currently I'm to tired to find the solution :( :( :( :( . I changed nothing in the app.js so I guess this should still works fine. I also get no errors exept of one but I got this one on all my solutions but the rest are still working. so i guess this is not an issue.

Does anyone can help me at least on the right way?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    For the first problem, success is deprecated, see <a class="postlink" href="https://code.angularjs.org/1.5.10/docs/api/ng/service/$http#deprecation-notice">https://code.angularjs.org/1.5.10/docs/ ... ion-notice</a>. We also changed from success to then in AspNet Zero and updated all usages according to new approach.

    For the second problem, have you checked angularjs changelogs ? There might be a change for routing. <a class="postlink" href="https://github.com/angular/angular.js/blob/master/CHANGELOG.md">https://github.com/angular/angular.js/b ... ANGELOG.md</a>

  • User Avatar
    0
    sagreven created

    Thanks.

    For the first issue: I also replaced everything to the then semantics.

    For the second issue: You also right. Changed all links to use !/

    Thx for the tip.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @SaGreven,

    We will also update our templates with the second change. Thanks again.