Unable To Redirect Using Angular Routeprovider
i am new to angular i when i am not able to redirect to the signup.html page when i hit the locahost:port/projectname/ eventhough i specified the template url for singup in app.js
Solution 1:
Your routes don't include '/projectname', which I assume is your application context. You need to include that in the route urls for it to work properly.
Solution 2:
Any path after your port is expected to be in routeProvider
config. your sever should serve the projectname folder then
.when('/', {templateUrl: '/signup.html',
controller: 'submitCtrl'
})
will work as expected
Post a Comment for "Unable To Redirect Using Angular Routeprovider"