That's right. Angular can still do a lot on your site, even if you never use the $ http service to talk to your server. You can still use utilities to help manage the DOM.
However, most modern applications need to get data from the server. There are many reasons why you may need to do this. For example, if you have users who need to register, you will need to store their username and password somewhere. This will be somewhere in the database, access to which can only be accessed by your server. Your server will then provide some URLs that you can talk to through the Angular $http .
If you have an application that makes calls on the server, but you want to disable network communication for testing, you can mock answers to the $http call. Angular provides $ httpBackend for this purpose. You can use it to create dummy URLs that pretend to answer your $http calls so that your $http calls don't know that they are not actually talking to the server.
authRequestHandler = $httpBackend.when('GET', '/auth.py') .respond({userId: 'userX'}, {'A-Token': 'xxx'});
Ideal for testing your code without using a REST server during testing.
source share