angularjs - "The Web server is configured to not list the contents of this directory" when loading the view Direclty (not when Naivgating from other page) -
i'm extending existing angular-mvc.net application. there 2 features: transformations (exisitng) , embossing (the 1 i'm creating). both of them use provider classes call underlying logic.
i copied logic transformation (angular , mvc model , views), renamed evrthing accordingly, , created new route feature in app.router.js
$routeprovider.when('/embossing', { templateurl: 'app/views/embossing.html', params: { test: "hola" }, resolve: { deps: [ "$oclazyload", function (a) { debugger; return a.load([jqload.c3, jqload.sparkline]) .then(function () { return a.load({ name: "app.directives", files: ["app/scripts/lazyload/directives/sparkline.directive.js"] }); }) .then(function () { return a.load("angular-c3"); }) .then(function () { return a.load("easypiechart"); }); } ] } });
now i'm able navigate without issues angular transformation controller embossing view using $location.path('/embossing');
the thing happens when load directly view entering http://localhost:1623/embossing/
or if hit enter on browrser's url bar after navegating transformation (as mentioned before) error
how come i'm able navigate view when load directly error? there i'm missing? wrong?
thanks
mvc , angularjs routing - 403.14 - forbidden
it got solved renaming "embossing" folder (the 1 contains embossingprovider.cs)
it seems there cannot folder name route. eg:
$routeprovider.when('/embossing', conflicting "embossing" folder
Comments
Post a Comment