title: Redirecting to error page in Angularjs
body: <p>I am new to AngularJs. I have a single page app with routes configured having a controller and a view. The view get loaded inside the <code>&lt;ng-view&gt;&lt;/ng-view&gt;</code> element of the <code>index.html</code> page. Inside the controller I am making a <code>http</code> call to get the data and binding the data to the <code>$scope</code>. For success scenarios this works fine but if there is an error how do I plug in another view instead of the default view configured inside the angular route. PLease let me know.</p>