---
title: "What is built-in services in AngularJS?"  
description: "What is built-in services in AngularJS?"  
author: "Ashutosh Patel"  
published: 2024-06-19  
updated: 2024-06-19  
canonical: https://www.mindstick.com/interview/33917/what-is-built-in-services-in-angularjs  
category: "angular js"  
tags: ["javascript", "angular js", "angularjs service"]  
reading_time: 2 minutes  

---

# What is built-in services in AngularJS?

#### Angularjs Built-in Services

**Built-in** services in AngularJS are **pre-defined** objects or functions that provide specific functionality in an application. AngularJS dependency injection system is typically used to embed this functionality in components (such as **controllers**, **directives**, and **filters**).

- **$http-** Used to make XMLHttpRequests (Ajax requests) to the server.
- **$scope-** Glue between controller and view, binding data and functions.
- **$rootScope-** Highest scope accessible from all other scopes.
- **$location-** Provides access to the browser's URL and enables deep connectivity capabilities.
- **$routeParams-** Allows access to route parameters in the URL.
- **$filter-** Filters data in the view.
- **$timeout-** AngularJS's wrapper for window.setTimeout used to schedule future code execution.
- **$interval-** AngularJS's wrapper for window.setInterval used to run code continuously at specified intervals.
- **$anchorScroll-** Scrolls to the specified anchor element.
- **$cacheFactory-** Creates and manages the cache.

This built-in service provides the functionality needed to interact with the browser, manage data, handle asynchronous operations, and more. AngularJS also allows developers to create custom services that can be embedded throughout the application and used as these built-in services.

**Also, Read:** [What are directives in AngularJS?](https://www.mindstick.com/interview/33915/what-are-directives-in-angularjs)

## Answers

### Answer by Ashutosh Patel

#### Angularjs Built-in Services

**Built-in** services in AngularJS are **pre-defined** objects or functions that provide specific functionality in an application. AngularJS dependency injection system is typically used to embed this functionality in components (such as **controllers**, **directives**, and **filters**).

- **$http-** Used to make XMLHttpRequests (Ajax requests) to the server.
- **$scope-** Glue between controller and view, binding data and functions.
- **$rootScope-** Highest scope accessible from all other scopes.
- **$location-** Provides access to the browser's URL and enables deep connectivity capabilities.
- **$routeParams-** Allows access to route parameters in the URL.
- **$filter-** Filters data in the view.
- **$timeout-** AngularJS's wrapper for window.setTimeout used to schedule future code execution.
- **$interval-** AngularJS's wrapper for window.setInterval used to run code continuously at specified intervals.
- **$anchorScroll-** Scrolls to the specified anchor element.
- **$cacheFactory-** Creates and manages the cache.

This built-in service provides the functionality needed to interact with the browser, manage data, handle asynchronous operations, and more. AngularJS also allows developers to create custom services that can be embedded throughout the application and used as these built-in services.

**Also, Read:** [What are directives in AngularJS?](https://www.mindstick.com/interview/33915/what-are-directives-in-angularjs)


---

Original Source: https://www.mindstick.com/interview/33917/what-is-built-in-services-in-angularjs

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
