#angularjs javascript codingpractice interviewpractice programmingpractice
Explore tagged Tumblr posts
Text
Top AngularJS Interview Questions
AngularJS has grown out to be one of the most popular career opportunities. It is one of the top JavaScript framework choices and has decent speed and agility. If you are looking for means to fast-track your career, AngularJS might be the best option for you. To help you pace up, we have assembled a few critical and frequently asked interview questions related to AngularJS.
What are AngularJS directives?
Application specific HTML syntax is extended with the help of AngularJS directives, which are HTML attributes with `ng-` prefix, for example `ng-app`, `ng-init`, `ng-model`. There are different types of directives like element directives, attribute directives, CSS class directive and comment directives.
What are AngularJS Controllers?
Controllers are JavaScript objects that provide data and logic to HTML UI. The application controller is defined by the `ng-controller` directive. They control how data flows from the server to HTML UI.
What is the difference between AngularJS and Backbone.js?
AngularJS is a live templating engine while Backbone.js is designed to build only isolated blocks of HTML combined with some JavaScript code.
What is factory method in AngularJS?
A factory is a function that returns objects. It can additionally be used to execute some logic before the object is returned. Factory method will be invoked using `app.factory` where first argument is the service name and the second argument is the function returning the object.
Does Angular use jQuery?
Angular can use jQuery only when it is present in the application. If jQuery is not already integrated into your application script path doesn’t have jQuery, Angular falls back to the subset of jQuery known as jqLite. jqLite supports a small subset of jQuery functionality and lets AngularJS to work with DOM. It is also cross-browser compatible.
Can multiple ng-app directives exist in AngularJS in a single page?
Per HTML document only one AngularJS application can be auto-bootstrapped. The first ngApp is used to describe the root element to auto-bootstrap as an application. If another ngApp directive has been placed then it will not be processed by AngularJS and second app will be manually bootstrapped.
Is nesting possible for angular applications?
Nesting is not possible in AngularJS applications.
For further interview preparation and practicing, visit CodeFights. A platform exclusively dedicated to coding practice and interview preparations.
0 notes