Top 5 AngularJS Interview Questions with Answers - PrepareInterview.com

Breaking

Thursday, October 15, 2015

Top 5 AngularJS Interview Questions with Answers

What is AngularJS?
AngularJS is a javascript (client side) open source framework used for creating single dynamic web page applications.  It allows you to use HTML (static) as your template language and enables you to extend HTML’s syntax to express your application’s components (dynamic) clearly. It extends HTML using directives, expression and data binding techniques to define a powerful HTML template.

What are the features of AngularJS?
  • Modules
  • Directives
  • Templates
  • Scope
  • Expressions
  • DataBinding
  • MVC (Model, View & Controller)
  • Validations
  • Filters
  • Services
  • Routing
  • Dependency Injection
  • Testing

Is AngularJS a library or framework?
AngularJS is not a library but open source client side MVC (Model View Controller) framework for creating dynamic web applications. It is lightweight and can use jQuery library if it's present in your application when the app is being bootstrapped. If jQuery is not present in your script path, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.

What is the difference between bootstrap and angularjs?
Bootstrap is a set of well structured CSS styles, Grid classes and JavaScript components. But AngularJS is one of the top 3 JavaScript Frameworks and its developed and maintained by Google.

What is scope in Angular.js ?
Scope is an object which refers to the application model, it acts like glue between application controller and the view.  Scopes are arranged in hierarchical structure and impersonate the DOM ( Document Object Model) structure of the application.  It can watch expressions and propagate events. Each angular app has a single scope ($rootscope) which mapped to the ng-app directive element.

What is the bootstrapping in AngularJS?
Bootstrapping in AngularJS is just initializing, or starting, your Angular app. AngularJS supports automatic bootstrapping as well as manual way as well.

No comments:

Post a Comment