Translate Primary tillage in English; Translate Primary tillage in Arabic; Translate Primary tillage in Chinese (s) Translate Primary tillage in Chinese (t) Translate Primary tillage in Dutch; Translate Primary tillage in French; Translate Primary tillage in German; Translate Primary tillage in Greek; Translate Primary tillage in Hebrew
Thus service is a stateless object that contains some useful functions. These functions can be called from anywhere; Controllers, Directive, Filters etc. Thus we can divide our application in logical units. The business logic or logic to call HTTP url to fetch data from server can be put within a service object.
AngularJS module is nothing but a container of all angular components like controller, services, directive, filter, config etc. What is Module. Let me explain why module is required in AngularJS. In .NET console application there is a main method and what main method does is, itâs an entry point of application. It is same as angular module and is an entry point. Using module we can decide how AngularJS application should be bootstrap.