What are the services in AngularJS? AngularJS come with several built-in services. For example $https: service is used to make XMLHttpRequests (Ajax calls). Services are singleton objects which are instantiated only once in app. What are the filters in AngularJS? Filters select a subset of items from an array and return a new array. Filters are used to show filtered items from a list of items based on defined criteria. Explain directives in AngularJS. Directives are markers on DOM elements suchaselements,attributes,css,andmore suchaselements,attributes,css,andmore. These can be used to create custom HTML tags that serve as new, custom widgets. AngularJS has built-in directives ng − bind,ng − model,etc ng−bind,ng−model,etc to perform most of the task that developers have to do. Explain templates in AngularJS. Templates are the rendered view with information from the controller and model. These can be a single file likeindex.html likeindex.html or multiple views in one page using "partials".
You've reached the end of your free preview.
Want to read all 10 pages?
- Spring '18