• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/12

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

12 Cards in this Set

  • Front
  • Back

What is AngularJS?

AngularJS is a javascript framework used for creating single web page applications. It allows you to use HTML as your template language and enables you to extend HTML’s syntax to express your application’s components clearly

Explain what are the key features of AngularJS ?

The key features of AngularJS are:


Scope


Controller


Model


View


Services


Data Binding


Directives


Filters


Testable

Explain what is scope in AngularJS ?

Scope 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.

Explain what is services in AngularJS ?

In AngularJS services are the singleton objects or functions that are used for carrying out specific tasks. It holds some business logic and these function can be called as controllers, directive, filters and so on.

Explain what is Angular Expression? Explain what is key difference between angular expressions and JavaScript expressions?

Like JavaScript, Angular expressions are code snippets that are usually placed in binding such as {{ expression }}The key difference between the JavaScript expressions and Angular expressions:




Context : In Angular, the expressions are evaluated against a scope object, while the Javascript expressions are evaluated against the global window




Forgiving: In Angular expression evaluation is forgiving to null and undefined, while in Javascript undefined properties generates TypeError or ReferenceError




No Control Flow Statements: Loops, conditionals or exceptions cannot be used in an angular expression




Filters: To format data before displaying it you can use filters



Explain what are directives ? Mention some of the most common:

A directive is something that introduces new syntax, they are like markers on DOM element which attaches a special behavior to it. In any AngularJS application, directives are the most important components.Some of the commonly used directives are ng-model, ng-App, ng-bind, ng-repeat , ng-show etc.

Mention what are the advantages of using AngularJS ?

AngularJS supports MVS pattern




Can do two ways data binding using AngularJS




It has per-defined form validations




It supports both client server communication




It supports animations

Explain what Angular JS routes does ?

Angular js routes enable you to create different URLs for different content in your application. Different URLs for different content enables user to bookmark URLs to specific content. Each such bookmarkable URL in AngularJS is called a route

Explain what is data binding in AngularJS ?

Automatic synchronization of data between the model and view components is referred as data binding in AngularJS.



Why is it better?

You can change a value without ever manipulating the DOM, but you can if desired.





What does Linking do in Angular?

Linking produces the Angular live view of combining view templates and custom directives with the model


What does $scope do?

It adds a $watcher to any objects attached to it.


Propagates model changes through the system into the view


$scope provides context for expression evaluation