AngularJs

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Mention what are the advantages of using Angular.js framework ?

-Supports two way data-binding -Supports MVC pattern -Support static template and angular template -Can add custom directive -Supports REST full services -Supports form validations -Support both client and server communication -Support dependency injection -Applying Animations -Event Handlers

Explain what are directives ?

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.

Explain what is injector?

An injector is a service locator. It is used to retrieve object instances as defined by provider, instantiate types, invoke methods and load modules. There is a single injector per Angular application, it helps to look up an object instance by its name.

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

Mention what are the advantages of using AngularJS ?

AngularJS has several advantages in web development. -AngularJS supports MVC pattern -Can do two ways data binding using AngularJS -It has per-defined form validations -It supports both client server communication -It supports animations

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 is data binding in AngularJS ?

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

Explain what is DI (Dependency Injection )?

DI or Dependency Injection is a software design pattern that deals with how code gets hold of its dependencies. In order to retrieve elements of the application which is required to be configured when module gets loaded , the operation "config" uses dependency injection.

Explain what is factory method in AngularJS?

For creating the directive, factory method is used. It is invoked only once, when compiler matches the directive for the first time. By using $injector.invoke the factory method is invoked.

Explain what is string interpolation in Angular.js ?

In Angular.js the compiler during the compilation process matches text and attributes using interpolate service to see if they contains embedded expressions.

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

Mention some of the most commonly used directives in AngularJS application ?

Some of the commonly used directives are ng-model, ng-App, ng-bind, ng-repeat , ng-show etc.

Explain what are the key features of AngularJS ?

The key features of AngularJS are: Scope Controller Model View Services Data Binding Directives Filters Testable

Mention the steps for the compilation process of HTML happens?

Using the standard browser API, first the HTML is parsed into DOM By using the call to the $compile () method, compilation of the DOM is performed. The method traverses the DOM and matches the directives. Link the template with scope by calling the linking function returned from the previous

With options on page load how you can initialize a select box ?

You can initialize a select box with options on page load by using ng-init directive <div ng-controller = " apps/dashboard/account " ng-switch On = "! ! accounts" ng-init = " loadData ( ) ">

Mention what are the styling form that ngModel adds to CSS classes ?

ngModel adds these CSS classes to allow styling of form as well as control ng- valid ng- invalid ng-pristine ng-dirty


Ensembles d'études connexes

MRKT - CENGAGE QUIZ: Chapter 06: Consumer Behavior

View Set

Module 18. Vision: Sensory and Perceptual Processing

View Set

Abd-Chap.23-24 Prostate & scrotum NH

View Set

PSYCH 312: Human Sexuality-Sexually Transmitted Infections/Diseases

View Set

Geometry Chapter 8 Always/Sometimes/Never

View Set

econ final review lake norman charter

View Set

Counseling theories, Comprehensive exam

View Set

Chapter 5 Analyzing the Audience

View Set

Ch 2. Organizational Theories for Human Resources

View Set