1
Well, I’m new to Angularjs. I have a project, a single page with routes configured with a controller. Views are loaded into the element of the index.html page. Inside the controller I am making an http call to get the data and data link with the $ scope. As I play the module, it is applied in ng-view. So far so good.. but I need to make an error page, if the user accesses the url anything that is not found, is directed to an error page.. where I can customize the error and suggest to the user to return to the main page.
You’re referring to treat error 404?
– DH.
That’s when someone types something in the url that doesn’t exist.. or there is an error be in registration or something pertinent, to have a customized view of the error..
– Maurício Krüger
Who handles the request is your server, whether ASP or PHP or any other. For example in PHP it is done using the
httpd
. The angler won’t be able to do that unless of course you want to treat if the return ofng-route
empty shaft.– DH.