Angular $routeParams is blank

后端 未结 7 1011
不知归路
不知归路 2021-02-19 03:49

I have a really simple Angular app that I\'ve distilled to the following:

var napp = angular.module(\'Napp\',[\'ngResource\']);

var CompanyCtrl = function($scop         


        
7条回答
  •  滥情空心
    2021-02-19 04:13

    First of all try this with

    $locationProvider.html5Mode(true);
    

    That should fix your starting code. Then adjust your code to support non-pushState browsers.

    Hope this helps!

提交回复
热议问题