Question: What is AngularJS?
It is javasScript framework which is written in javascript. It is Best for Single Page Applications. It extend the html with new attributes which makes it more useful for UI Developer.
Question: In which language, AngularJS is written?
javaScript
Question: When First AngularJS was released?
2009
Question: When latest AngularJS was released?
November 24, 2017
Question: What is latest version of AngularJS?
1.6.7
Question: Who created AngularJS?
Misko Hevery started to work on AngularJS in 2009. He was employee of Google.
Question: Is it opensource?
Yes, It is free to use.
Question: Explain what are the key features of Angular.js?
- Scope
- Controller
- Model
- View
- Services
- Data Binding
- Directives
- Filters
- Testable
Question: From where we can download the AngularJS File?
Question: What is controller in AngularJS?
Controller is constructor function in Angular Controller.
When a Controller is attached to the DOM with use the ng-controller, Angular will instantiate a new Controller object using constructor function.
Question: Explain what are directives?
Directives are used to add new attributes of HTML.
Question: What are the different types of Directive?
Different types of directives are
- Element directives
- Attribute directives
- CSS class directives
- Comment directives
Question: Explain what is injector?
An injector is a service locator, used to retrieve object instances.
Question: Explain what are factory method in angularJs?
Factory method are used to create the directive. It is invoked only once, when compiler matches the directive for the first time.
Question: Does Angular use the jQuery library?
Ans. Yes, Angular can use jQuery if you have included the jQuery library.
IF Not, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.
Question: What is ng-app, ng-init and ng-model?
ng-app - To initialize the Angular Application.
ng-init - To initialize the Angular Application data.
ng-model - To bind the html tags (input, select, textarea) to Angular Application Data.
Question: What is Data Binding in Angular JS?
It is synchronization of data between the model(Angular Application variable) and view components (display with {{}}).
Question: Give an Example of Data-Binding in AngularJS?
Total Cost: {{ quantity * cost }}
Question: What is Looping in AngularJs and Give an Example?
It is used to display the data in loop same as foreach in PHP
Example:
Loop Example:
- {{ x }}
Question: How to Write Expression in AngularJS?
Expression: {{ 15 + 55 }}
Question: How to initiate variable in AngularJS?
Total Cost: {{ quantity * cost }}
OR
Total Cost:
Question: Example of AngularJS Strings?
Full String is : {{ Str1 + " " + Str2 }}
Question: Example of AngularJS Object?
String Display: {{ myobj.Str2 }}
Question: What is Angular Controllers & give an Example?
Controller is constructor function in Angular Controller.
When a Controller is attached to the DOM with use the ng-controller, Angular will instantiate a new Controller object using constructor function.
Example:
String 1:
String 2:
Full String {{fullString()}}
Question: What is Dependency Injection?
Dependency Injection (DI) is a software design pattern that deals with how components get deal of their dependencies.