This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which Are The Core Directives Of Angular Js? |
|
Answer» FOLLOWING are the three CORE directives of AngularJS. Following are the three core directives of AngularJS. |
|
| 2. |
Explain Angular Js Boot Process. |
|
Answer» When the page is loaded in the BROWSER, FOLLOWING things HAPPEN: When the page is loaded in the browser, following things happen: |
|
| 3. |
Explain Ng-bind Directive ? |
|
Answer» ng-bind directive binds the AngularJS APPLICATION data to HTML tags. ng-bind UPDATES the model created by ng-model directive to be displayed in the html tag whenever user input SOMETHING in the control or updates the html control’s data when model data is updated by controller. ng-bind directive binds the AngularJS Application data to HTML tags. ng-bind updates the model created by ng-model directive to be displayed in the html tag whenever user input something in the control or updates the html control’s data when model data is updated by controller. |
|
| 4. |
Explain Ng-model Directive? |
|
Answer» ng-model directive BINDS the values of AngularJS APPLICATION DATA to HTML input CONTROLS. It creates a model variable which can be used with the html PAGE and within the container control( for example, div) having ng-app directive. ng-model directive binds the values of AngularJS application data to HTML input controls. It creates a model variable which can be used with the html page and within the container control( for example, div) having ng-app directive. |
|
| 5. |
Explain Ng-app Directive? |
|
Answer» ng-app DIRECTIVE defines and LINKS an AngularJS application to HTML. It also INDICATE the START of the application. ng-app directive defines and links an AngularJS application to HTML. It also indicate the start of the application. |
|
| 6. |
How Angular Js Integrates With Html? |
|
Answer» ANGULARJS being a pure javaScript based LIBRARY INTEGRATES easily with HTML. AngularJS being a pure javaScript based library integrates easily with HTML. |
|
| 7. |
Explain Ng-controller Directive ? |
|
Answer» Ng-CONTROLLER directive tells ANGULARJS what controller to use with this VIEW. AngularJS application mainly relies on controllers to control the flow of DATA in the application. A controller is a JavaScript object CONTAINING attributes/properties and functions. Each controller accepts $scope as a parameter which refers to the application/module that controller is to control. Ng-controller directive tells AngularJS what controller to use with this view. AngularJS application mainly relies on controllers to control the flow of data in the application. A controller is a JavaScript object containing attributes/properties and functions. Each controller accepts $scope as a parameter which refers to the application/module that controller is to control. |
|
| 8. |
Explain Ng-init Directive ? |
|
Answer» ng-init DIRECTIVE initializes an AngularJS Application data. It is USED to put values to the VARIABLES to be used in the application. ng-init directive initializes an AngularJS Application data. It is used to put values to the variables to be used in the application. |
|
| 9. |
What Are Angular Js Expressions? |
|
Answer» EXPRESSIONS are used to bind application DATA to html. Expressions are written INSIDE double braces like {{ expression}}. Expressions BEHAVE in same way as ng-bind directives. AngularJS application expressions are pure JavaScript expressions and OUTPUTS the data where they are used. Expressions are used to bind application data to html. Expressions are written inside double braces like {{ expression}}. Expressions behave in same way as ng-bind directives. AngularJS application expressions are pure JavaScript expressions and outputs the data where they are used. |
|
| 10. |
Explain Ng-repeat Directive ? |
|
Answer» ng-repeat directive REPEATS HTML ELEMENTS for each ITEM in a collection. ng-repeat directive repeats html elements for each item in a collection. |
|
| 11. |
Explain Uppercase Filter? |
|
Answer» Uppercase filter converts a text to upper case text. Enter first name:<input type = “text” ng–model = “student.firstName”> Uppercase filter converts a text to upper case text. Enter first name:<input type = “text” ng–model = “student.firstName”> |
|
| 12. |
Explain Filter Filter? |
|
Answer» filter filter is USED to filter the array to a SUBSET of it based on provided criteria. Enter subject: <input TYPE = “text” ng-model = “subjectName”> filter filter is used to filter the array to a subset of it based on provided criteria. Enter subject: <input type = “text” ng-model = “subjectName”> |
|
| 13. |
Explain Currency Filter? |
|
Answer» Currency FILTER formats text in a currency format. Enter fees: <INPUT TYPE = “text” ng-model = “student.fees”> Currency filter formats text in a currency format. Enter fees: <input type = “text” ng-model = “student.fees”> |
|
| 14. |
Explain Ng-show Directive? |
|
Answer» ng-SHOW directive shows a given control. <input type = “checkbox” ng-model = “showHide1”>Show Button ng-show directive shows a given control. <input type = “checkbox” ng-model = “showHide1”>Show Button |
|
| 15. |
Explain Ng-disabled Directive? |
|
Answer» ng-disabled directive disables a given control. ng-disabled directive disables a given control. |
|
| 16. |
Explain Order By Filter? |
|
Answer» orderby filter ORDERS the array based on provided criteria. <ul> orderby filter orders the array based on provided criteria. <ul> |
|
| 17. |
Explain Ng-hide Directive? |
|
Answer» ng-hide directive hides a given control. <INPUT type = “checkbox” ng-model = “showHide2”>Hide Button ng-hide directive hides a given control. <input type = “checkbox” ng-model = “showHide2”>Hide Button |
|
| 18. |
Explain Ng-click Directive? |
|
Answer» ng-click directive represents a AngularJS click event. <p>Total click: {{ clickCounter }}</p></td> ng-click directive represents a AngularJS click event. <p>Total click: {{ clickCounter }}</p></td> |
|
| 19. |
How Angular.module Works? |
|
Answer» angular.module is used to CREATE AngularJS modules along with its DEPENDENT modules. angular.module is used to create AngularJS modules along with its dependent modules. |
|
| 20. |
How To Validate Data In Angular Js? |
|
Answer» ANGULARJS enriches form FILLING and validation. We can use $dirty and $invalid FLAGS to do the validations in seamless way. Use novalidate with a form declaration to disable any BROWSER specific validation. AngularJS enriches form filling and validation. We can use $dirty and $invalid flags to do the validations in seamless way. Use novalidate with a form declaration to disable any browser specific validation. |
|
| 21. |
How To Make An Ajax Call Using Angular Js? |
|
Answer» AngularJS provides $HTTP control which works as a service to make ajax CALL to read DATA from the server. The server makes a database call to get the desired records. AngularJS needs data in JSON format. Once the data is ready, $http can be used to get the data from server in the following manner: AngularJS provides $http control which works as a service to make ajax call to read data from the server. The server makes a database call to get the desired records. AngularJS needs data in JSON format. Once the data is ready, $http can be used to get the data from server in the following manner: |
|
| 22. |
What Is $rootscope? |
|
Answer» Scope is a SPECIAL JavaScript object which PLAYS the role of joining controller with the views. Scope contains the model data. In CONTROLLERS, model data is accessed VIA $scope object. $rootScope is the parent of all of the scope variables. Scope is a special JavaScript object which plays the role of joining controller with the views. Scope contains the model data. In controllers, model data is accessed via $scope object. $rootScope is the parent of all of the scope variables. |
|
| 23. |
What Is Use Of $routeprovider In Angular Js? |
|
Answer» $routeProvider is the KEY service which SET the configuration of URLS, maps them with the corresponding html PAGE or ng-template, and attaches a CONTROLLER with the same. $routeProvider is the key service which set the configuration of urls, maps them with the corresponding html page or ng-template, and attaches a controller with the same. |
|
| 24. |
What Is A Service? |
|
Answer» Services are JavaScript functions and are responsible to do specific TASKS only. Each service is responsible for a specific TASK for example, $HTTP is used to make ajax CALL to get the server data. $route is used to define the routing information and so on. Inbuilt services are always prefixed with $ symbol. Services are JavaScript functions and are responsible to do specific tasks only. Each service is responsible for a specific task for example, $http is used to make ajax call to get the server data. $route is used to define the routing information and so on. Inbuilt services are always prefixed with $ symbol. |
|
| 25. |
What Is Service Method? |
|
Answer» Using service method, we define a service and then ASSIGN method to it. We’ve also injected an ALREADY AVAILABLE service to it. mainApp.service(‘CalcService’, function(MathService) Using service method, we define a service and then assign method to it. We’ve also injected an already available service to it. mainApp.service(‘CalcService’, function(MathService) |
|
| 26. |
What Is Factory Method? |
|
Answer» USING factory METHOD, we first DEFINE a factory and then assign method to it. Using factory method, we first define a factory and then assign method to it. |
|
| 27. |
What Are The Differences Between Service And Factory Methods? |
|
Answer» factory method is used to DEFINE a factory which can later be used to create services as and when required whereas service method is used to create a service whose purpose is to do some DEFINED task. factory method is used to define a factory which can later be used to create services as and when required whereas service method is used to create a service whose purpose is to do some defined task. |
|
| 28. |
What Is Constant? |
|
Answer» constants are used to PASS VALUES at config PHASE considering the FACT that value cannot be used to be passed during config phase. constants are used to pass values at config phase considering the fact that value cannot be used to be passed during config phase. |
|
| 29. |
Is Angular Js Extensible? |
|
Answer» Yes! In AngularJS we can create custom directive to extend AngularJS existing functionalities. Yes! In AngularJS we can create custom directive to extend AngularJS existing functionalities. |
|
| 30. |
Which Components Can Be Injected As A Dependency In Angular Js? |
|
Answer» Angular JS provides a SUPREME Dependency Injection mechanism. It provides FOLLOWING CORE components which can be injected into each other as dependencies. Angular JS provides a supreme Dependency Injection mechanism. It provides following core components which can be injected into each other as dependencies. |
|
| 31. |
On Which Types Of Component Can We Create A Custom Directive? |
|
Answer» Angular JS PROVIDES support to CREATE custom directives for following type of elements. Angular JS provides support to create custom directives for following type of elements. |
|
| 32. |
What Is Internationalization? |
|
Answer» INTERNATIONALIZATION is a way to SHOW locale specific information on a website. For example, display content of a website in English LANGUAGE in United States and in Danish in FRANCE. Internationalization is a way to show locale specific information on a website. For example, display content of a website in English language in United States and in Danish in France. |
|
| 33. |
How To Implement Internationalization In Angular Js? |
|
Answer» Angular JS supports inbuilt internationalization for three types of FILTERS currency, date and numbers. We only need to incorporate corresponding js according to LOCALE of the country. By default it handles the locale of the browser. For example, to use DANISH locale, use FOLLOWING script Angular JS supports inbuilt internationalization for three types of filters currency, date and numbers. We only need to incorporate corresponding js according to locale of the country. By default it handles the locale of the browser. For example, to use Danish locale, use following script |
|
| 34. |
What Are The Advantages Of Angular Js? |
|
Answer» Advantages of Angular JS: Advantages of Angular JS: |
|
| 35. |
What Is Deep Linking In Angular Js? |
|
Answer» DEEP linking ALLOWS you to encode the STATE of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state. Deep linking allows you to encode the state of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state. |
|
| 36. |
What Is Routing In Angular Js? |
|
Answer» It is CONCEPT of SWITCHING views. ANGULAR JS based CONTROLLER decides which view to render based on the business logic. It is concept of switching views. Angular JS based controller decides which view to render based on the business logic. |
|
| 37. |
Explain Templates In Angular Js. |
|
Answer» TEMPLATES are the rendered view with information from the controller and model. These can be a SINGLE file (LIKE index.html) or multiple views in ONE PAGE using “partials”. Templates are the rendered view with information from the controller and model. These can be a single file (like index.html) or multiple views in one page using “partials”. |
|
| 38. |
Explain Directives In Angular Js. |
|
Answer» Directives are markers on DOM ELEMENTS (such as elements, attributes, css, and more). These can be used to create custom HTML TAGS that serve as new, custom widgets. Angular JS has built-in directives (ng-bind, ng-model, ETC) to perform most of the task that developers have to do. Directives are markers on DOM elements (such as elements, attributes, css, and more). These can be used to create custom HTML tags that serve as new, custom widgets. Angular JS has built-in directives (ng-bind, ng-model, etc) to perform most of the task that developers have to do. |
|
| 39. |
What Are The Filters In Angular Js? |
|
Answer» 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. 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. |
|
| 40. |
What Are The Services In Angular Js? |
|
Answer» Angular JS COME with several built-in services. For EXAMPLE $http SERVICE is USED to make XMLHttpRequests (AJAX calls). Services are singleton objects which are instantiated only once in app. Angular JS come with several built-in services. For example $http service is used to make XMLHttpRequests (Ajax calls). Services are singleton objects which are instantiated only once in app. |
|
| 41. |
What Are The Controllers In Angular Js? |
|
Answer» Controllers are JavaScript functions that are bound to a particular scope. They are the PRIME actors in Angular JS FRAMEWORK and carry functions to OPERATE on data and decide which view is to be updated to SHOW the updated model based data. Controllers are JavaScript functions that are bound to a particular scope. They are the prime actors in Angular JS framework and carry functions to operate on data and decide which view is to be updated to show the updated model based data. |
|
| 42. |
What Is Scope In Angular Js? |
|
Answer» SCOPES are objects that refer to the model. They ACT as GLUE between controller and VIEW. Scopes are objects that refer to the model. They act as glue between controller and view. |
|
| 43. |
What Is Data Binding In Angular Js? |
|
Answer» DATA binding is the AUTOMATIC synchronization of data between MODEL and VIEW components. ng-model directive is used in data binding. Data binding is the automatic synchronization of data between model and view components. ng-model directive is used in data binding. |
|