What are Services in Angular and what command is used to create a service?



What are Services in Angular and what command is used to create a service?..

Answer / Subash Chandra Yadav

Services in Angular are classes that define functionality for the application, such as data retrieval or business logic. To create a service, you can use the Angular CLI with the command 'ng generate service <service-name>'. This will generate a new service file and add it to the appropriate modules.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain what angular js routes does ?

1 Answers  


What are annotations in angular?

1 Answers  


What is scope in javascript?

1 Answers  


How to securely parse and manipulate your HTML data in AngularJS?

1 Answers  


What is the best way to declare and access a global variable in angular 2?

1 Answers  


When dependent modules of a module are loaded?

1 Answers  


How many types of data binding directives are provided by angularjs?

1 Answers  


Explain uppercase filter?

1 Answers  


What is provider in angularjs?

1 Answers  


What is routeractive?

1 Answers  


Is angular a good career?

1 Answers  


What is directive order?

1 Answers  


Categories