SlideShare a Scribd company logo
Angularjs Interview Questions and Answers
Via Web page
by Code-Sample.com
1. What is Angularjs?
The angularjs is a JavaScript [MVW || MV* ] framework and Its maintain by Google. The most
of use to creating to single-page applications (SPA) with the MVC pattern. Its used for both
client-side and server-side web application etc.
{{
The MVW || MV* stand for " Model-View-Whatever".
We considering the " MVC", "MVVM", "MVP" but angularjs is more closer to MVC pattern, I
would guess "whatever works for you !" , " Model-View-Whatever".
Some people are stand to MVW and some are MV* :)
}}
The main features are given below.
1. Its support both type of binding one-way and two-way data bindings.
2. Its support MVC pattern.
3. Its support static template and angular template.
4. You can add custom directives.
5. Its support REST full services.
6. Its support form validations.
7. Its support both client and server communication.
8. Its support dependency injection.
9. Applying Animations.
10. Event Handlers.
2. What are the main features in AngularJs?
Ans : The main key features are
1. Scope,
2. Controller,
3. Model,
4. View,
5. Services,
6. Data Binding,
7. Directives,
8. Filters,
9. Validation and
10. Testable.
3. Why should use Angularjs?
Angularjs provide 10 key points as given below, behalf of this keys, I can say that why we use
it! :)
1. It's fully extensible and works with other libraries.
2. This is a declarative user interface.
3. Data models are plain old JavaScript objects.
4. Good Behaviour with directives.
5. Good Flexibility with filters.
6. Write loosely coupled and less code.
7. DOM manipulations , Its support one-way binding and two-way binding both.
8. Service providers where they belong.
9. Context aware both client and server communication.
10. Unit Testing features ready.
4. Why is namespace called "ng"?
The prefix "ng" called angular and Its HTML has Angular brackets {{ }}.
Example. <span>{{user.name}}</span>
5. Is Angularjs is a library, framework or plugins?
Angularjs is a Framework not a library or browser plugins. Because Angularjs is 100% client-
side JavaScript and Its support to desktop and mobile browsers.
6. Is Angularjs a templating system?
We can use the ng-include directive for templating system. Angularjs support DOM based
templating.
7. In AngularJS, we need to worry about security holes?
Angularjs handle to basic security holes like.
1. HTML injection attacks,
2. cross-site-scripting (CSS)
3. XSRF protection for server side communication.
4. Basic authentication and authorization etc.
8. Can we use to open-source Library with Angular?
Yes, I can use to open source libraries.
9. Does Angularjs depends on jQuery library?
If jQuery is available on page that time it use otherwise it use to jqLite.
Angularjs framework contain subset of jQuery that is called jqLite. In jqLite contain needed
limited events and methods which supported to DOM manipulations.
The jqLite is enough to work for Angularjs. Using jqLite, Removed the dependency of
jQuery etc.
When you start to work with directive that time you need to add jQuery. For example, if you
are using ng-grid directive that time need to add jQuery because some of the features
required to jQuery.
Angularjs support to jQuery version 2.1 or above.
10. What about Auto bootstrap process in AngularJs?
In angularjs ng-app is used to auto-bootstrapping to your applications.
Its also called Automatic Initialization.
The ng-app is the root of compilation and tell only this portion of DOM is angularjs part.
Click here for Example code
11. What are Directives in AngularJs? {{Answers}}
12. What are $scope in AngularJs?{{Answers}}
13. How to use angularjs? {{ Answers }}
14. How to use filter in angularjs? {{ Answers }}
15. How to use foreach in angularjs? {{ Answers }}
16. How to write increment counter in angularjs? {{ Answers }}
17. How to find the index counter in ng-repeat angularjs? {{ Answers }}
18. How to add rows in angularjs? {{ Answers }}
19. How to delete a row in angularjs? {{ Answers }}
20. How to use angularjs data grid/ng-grid? {{ Answers }}
21. What type of angularjs date format? {{ Answers }}
22. Tell me angularjs date calendar with example? {{ Answers }}
23. how to upload file in angularjs? {{ Answers }}
24. How to use the drop-down list in angularjs? {{ Answers }}
25. How to configuring routes in angularjs? {{ Answers }}
26. How to use the angularjs $watch? {{ Answers }}
27. How to use the JSON object in ng-repeat? {{ Answers }}
28. What is angularjs i18n and L10n language translation? {{ Answers }}
29. How to use ng-if/else in angularjs? {{ Answers }}
30. How to use ng-show and ng-hide in angularjs? {{ Answers }}
31. How to use the css binding in angularjs? {{ Answers }}
32. How to initialize a select box with options on page load in AngularJs?{{Answers}}
33. How to enable and disable buttons with using condition?{{Answers}}
34. How to using looping through a collection for each item in AngularJs?{{Answers}}
35. How to bind selection box with options in the AngularJs?{{Answers}}
36. How to display images based on the status(A, B, and C) in AngularJs?{{Answers}}
37. Why would you use a service over a factory?
The Services are singletons.They are ideal for keeping and tracking the state.
The factories will always return a new instance for each object.
38. What is a Factory?
Factory are used to communicate with servers using HTTP models and persist the application
state and change to the across controllers.
The factories methodology are use to create the reusable code and feature of applications.
39. What are the differences between $resource and $http? {{Answers}}
40. Can you explain to $on and/or $watch ? {{ Answers }}
42. $scope vs scope in angularjs? {{ Answers }}
43. What difference between ng-app vs. data-ng-app and x-ng-app? {{Answers}}
44. What types of filter in AngularJs? {{ Answers}}
45. What is ng-cloak directive and Why we use? {{Answers}}
This file was saved from Inoreader
Ad

More Related Content

What's hot (20)

Angular js best practice
Angular js best practiceAngular js best practice
Angular js best practice
Matteo Scandolo
 
Get satrted angular js
Get satrted angular jsGet satrted angular js
Get satrted angular js
Alexandre Marreiros
 
Gettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJSGettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
David Parsons
 
Different way to share data between controllers in angular js
Different way to share data between controllers in angular jsDifferent way to share data between controllers in angular js
Different way to share data between controllers in angular js
codeandyou forums
 
AngularJS
AngularJSAngularJS
AngularJS
Maurice De Beijer [MVP]
 
Introduction to AngularJS Framework
Introduction to AngularJS FrameworkIntroduction to AngularJS Framework
Introduction to AngularJS Framework
Raveendra R
 
Angularjs tutorial
Angularjs tutorialAngularjs tutorial
Angularjs tutorial
HarikaReddy115
 
AngularJS One Day Workshop
AngularJS One Day WorkshopAngularJS One Day Workshop
AngularJS One Day Workshop
Shyam Seshadri
 
5 angularjs features
5 angularjs features5 angularjs features
5 angularjs features
Alexey (Mr_Mig) Migutsky
 
AngularJS - What is it & Why is it awesome ? (with demos)
AngularJS - What is it & Why is it awesome ? (with demos)AngularJS - What is it & Why is it awesome ? (with demos)
AngularJS - What is it & Why is it awesome ? (with demos)
Gary Arora
 
Introduction to Angular js 2.0
Introduction to Angular js 2.0Introduction to Angular js 2.0
Introduction to Angular js 2.0
Nagaraju Sangam
 
AngularJS is awesome
AngularJS is awesomeAngularJS is awesome
AngularJS is awesome
Eusebiu Schipor
 
Angular 2 - Better or worse
Angular 2 - Better or worseAngular 2 - Better or worse
Angular 2 - Better or worse
Vladimir Georgiev
 
Angular js tutorial slides
Angular js tutorial slidesAngular js tutorial slides
Angular js tutorial slides
samhelman
 
AngularJS
AngularJSAngularJS
AngularJS
Hiten Pratap Singh
 
Angular js
Angular jsAngular js
Angular js
Knoldus Inc.
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
Jussi Pohjolainen
 
Angular js for beginners
Angular js for beginnersAngular js for beginners
Angular js for beginners
Munir Hoque
 
Angular js PPT
Angular js PPTAngular js PPT
Angular js PPT
Imtiyaz Ahmad Khan
 
Angular js best practice
Angular js best practiceAngular js best practice
Angular js best practice
Matteo Scandolo
 
Gettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJSGettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
David Parsons
 
Different way to share data between controllers in angular js
Different way to share data between controllers in angular jsDifferent way to share data between controllers in angular js
Different way to share data between controllers in angular js
codeandyou forums
 
Introduction to AngularJS Framework
Introduction to AngularJS FrameworkIntroduction to AngularJS Framework
Introduction to AngularJS Framework
Raveendra R
 
AngularJS One Day Workshop
AngularJS One Day WorkshopAngularJS One Day Workshop
AngularJS One Day Workshop
Shyam Seshadri
 
AngularJS - What is it & Why is it awesome ? (with demos)
AngularJS - What is it & Why is it awesome ? (with demos)AngularJS - What is it & Why is it awesome ? (with demos)
AngularJS - What is it & Why is it awesome ? (with demos)
Gary Arora
 
Introduction to Angular js 2.0
Introduction to Angular js 2.0Introduction to Angular js 2.0
Introduction to Angular js 2.0
Nagaraju Sangam
 
Angular js tutorial slides
Angular js tutorial slidesAngular js tutorial slides
Angular js tutorial slides
samhelman
 
Angular js for beginners
Angular js for beginnersAngular js for beginners
Angular js for beginners
Munir Hoque
 

Similar to Angularjs interview questions and answers (20)

AngularJS
AngularJS AngularJS
AngularJS
NexThoughts Technologies
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to Angularjs
Gaurav Agrawal
 
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
Alex Ershov
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
Infosys Angular Interview Questions PDF By ScholarHat
Infosys Angular Interview Questions PDF By ScholarHatInfosys Angular Interview Questions PDF By ScholarHat
Infosys Angular Interview Questions PDF By ScholarHat
Scholarhat
 
Angular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad indiaAngular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad india
php2ranjan
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
Angularjs on line training
Angularjs on line trainingAngularjs on line training
Angularjs on line training
Jahan Murugassan
 
Angular js getting started
Angular js getting startedAngular js getting started
Angular js getting started
Hemant Mali
 
Tips on How to Optimize AngularJS App Performance
Tips on How to Optimize AngularJS App PerformanceTips on How to Optimize AngularJS App Performance
Tips on How to Optimize AngularJS App Performance
Windzoon Technologies
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
Angular Project Report
 Angular Project Report Angular Project Report
Angular Project Report
Kodexhub
 
What You Really Want To Be Aware (2).pptx
What You Really Want To Be Aware (2).pptxWhat You Really Want To Be Aware (2).pptx
What You Really Want To Be Aware (2).pptx
reshu khan
 
Angular interview questions
Angular interview questionsAngular interview questions
Angular interview questions
Goa App
 
Angular js slides
Angular js slidesAngular js slides
Angular js slides
Amr Abd El Latief
 
The Basics Angular JS
The Basics Angular JS The Basics Angular JS
The Basics Angular JS
OrisysIndia
 
AngularJS in practice
AngularJS in practiceAngularJS in practice
AngularJS in practice
Eugene Fidelin
 
Angular JS
Angular JSAngular JS
Angular JS
Vithika Gupta
 
What are the key distinctions between Angular and AngularJS?
What are the key distinctions between Angular and AngularJS?What are the key distinctions between Angular and AngularJS?
What are the key distinctions between Angular and AngularJS?
Albiorix Technology
 
Angular
AngularAngular
Angular
MUDDUKRISHNA14
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to Angularjs
Gaurav Agrawal
 
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
Alex Ershov
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
Infosys Angular Interview Questions PDF By ScholarHat
Infosys Angular Interview Questions PDF By ScholarHatInfosys Angular Interview Questions PDF By ScholarHat
Infosys Angular Interview Questions PDF By ScholarHat
Scholarhat
 
Angular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad indiaAngular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad india
php2ranjan
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
Angularjs on line training
Angularjs on line trainingAngularjs on line training
Angularjs on line training
Jahan Murugassan
 
Angular js getting started
Angular js getting startedAngular js getting started
Angular js getting started
Hemant Mali
 
Tips on How to Optimize AngularJS App Performance
Tips on How to Optimize AngularJS App PerformanceTips on How to Optimize AngularJS App Performance
Tips on How to Optimize AngularJS App Performance
Windzoon Technologies
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
Angular Project Report
 Angular Project Report Angular Project Report
Angular Project Report
Kodexhub
 
What You Really Want To Be Aware (2).pptx
What You Really Want To Be Aware (2).pptxWhat You Really Want To Be Aware (2).pptx
What You Really Want To Be Aware (2).pptx
reshu khan
 
Angular interview questions
Angular interview questionsAngular interview questions
Angular interview questions
Goa App
 
The Basics Angular JS
The Basics Angular JS The Basics Angular JS
The Basics Angular JS
OrisysIndia
 
What are the key distinctions between Angular and AngularJS?
What are the key distinctions between Angular and AngularJS?What are the key distinctions between Angular and AngularJS?
What are the key distinctions between Angular and AngularJS?
Albiorix Technology
 
Ad

Recently uploaded (20)

Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Datastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptxDatastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptx
kaleeswaric3
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Learn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step GuideLearn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step Guide
Marcel David
 
Leading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael JidaelLeading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael Jidael
Michael Jidael
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Datastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptxDatastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptx
kaleeswaric3
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Learn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step GuideLearn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step Guide
Marcel David
 
Leading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael JidaelLeading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael Jidael
Michael Jidael
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
Ad

Angularjs interview questions and answers

  • 1. Angularjs Interview Questions and Answers Via Web page by Code-Sample.com 1. What is Angularjs? The angularjs is a JavaScript [MVW || MV* ] framework and Its maintain by Google. The most of use to creating to single-page applications (SPA) with the MVC pattern. Its used for both client-side and server-side web application etc. {{ The MVW || MV* stand for " Model-View-Whatever". We considering the " MVC", "MVVM", "MVP" but angularjs is more closer to MVC pattern, I would guess "whatever works for you !" , " Model-View-Whatever". Some people are stand to MVW and some are MV* :) }} The main features are given below.
  • 2. 1. Its support both type of binding one-way and two-way data bindings. 2. Its support MVC pattern. 3. Its support static template and angular template. 4. You can add custom directives. 5. Its support REST full services. 6. Its support form validations. 7. Its support both client and server communication. 8. Its support dependency injection. 9. Applying Animations. 10. Event Handlers. 2. What are the main features in AngularJs? Ans : The main key features are 1. Scope, 2. Controller, 3. Model, 4. View, 5. Services, 6. Data Binding, 7. Directives, 8. Filters, 9. Validation and 10. Testable. 3. Why should use Angularjs? Angularjs provide 10 key points as given below, behalf of this keys, I can say that why we use it! :) 1. It's fully extensible and works with other libraries. 2. This is a declarative user interface.
  • 3. 3. Data models are plain old JavaScript objects. 4. Good Behaviour with directives. 5. Good Flexibility with filters. 6. Write loosely coupled and less code. 7. DOM manipulations , Its support one-way binding and two-way binding both. 8. Service providers where they belong. 9. Context aware both client and server communication. 10. Unit Testing features ready. 4. Why is namespace called "ng"? The prefix "ng" called angular and Its HTML has Angular brackets {{ }}. Example. <span>{{user.name}}</span> 5. Is Angularjs is a library, framework or plugins? Angularjs is a Framework not a library or browser plugins. Because Angularjs is 100% client- side JavaScript and Its support to desktop and mobile browsers. 6. Is Angularjs a templating system? We can use the ng-include directive for templating system. Angularjs support DOM based templating. 7. In AngularJS, we need to worry about security holes? Angularjs handle to basic security holes like. 1. HTML injection attacks, 2. cross-site-scripting (CSS) 3. XSRF protection for server side communication. 4. Basic authentication and authorization etc. 8. Can we use to open-source Library with Angular? Yes, I can use to open source libraries. 9. Does Angularjs depends on jQuery library? If jQuery is available on page that time it use otherwise it use to jqLite. Angularjs framework contain subset of jQuery that is called jqLite. In jqLite contain needed limited events and methods which supported to DOM manipulations. The jqLite is enough to work for Angularjs. Using jqLite, Removed the dependency of jQuery etc. When you start to work with directive that time you need to add jQuery. For example, if you are using ng-grid directive that time need to add jQuery because some of the features required to jQuery. Angularjs support to jQuery version 2.1 or above.
  • 4. 10. What about Auto bootstrap process in AngularJs? In angularjs ng-app is used to auto-bootstrapping to your applications. Its also called Automatic Initialization. The ng-app is the root of compilation and tell only this portion of DOM is angularjs part. Click here for Example code 11. What are Directives in AngularJs? {{Answers}} 12. What are $scope in AngularJs?{{Answers}} 13. How to use angularjs? {{ Answers }} 14. How to use filter in angularjs? {{ Answers }} 15. How to use foreach in angularjs? {{ Answers }} 16. How to write increment counter in angularjs? {{ Answers }} 17. How to find the index counter in ng-repeat angularjs? {{ Answers }} 18. How to add rows in angularjs? {{ Answers }} 19. How to delete a row in angularjs? {{ Answers }} 20. How to use angularjs data grid/ng-grid? {{ Answers }} 21. What type of angularjs date format? {{ Answers }} 22. Tell me angularjs date calendar with example? {{ Answers }} 23. how to upload file in angularjs? {{ Answers }}
  • 5. 24. How to use the drop-down list in angularjs? {{ Answers }} 25. How to configuring routes in angularjs? {{ Answers }} 26. How to use the angularjs $watch? {{ Answers }} 27. How to use the JSON object in ng-repeat? {{ Answers }} 28. What is angularjs i18n and L10n language translation? {{ Answers }} 29. How to use ng-if/else in angularjs? {{ Answers }} 30. How to use ng-show and ng-hide in angularjs? {{ Answers }} 31. How to use the css binding in angularjs? {{ Answers }} 32. How to initialize a select box with options on page load in AngularJs?{{Answers}} 33. How to enable and disable buttons with using condition?{{Answers}} 34. How to using looping through a collection for each item in AngularJs?{{Answers}} 35. How to bind selection box with options in the AngularJs?{{Answers}} 36. How to display images based on the status(A, B, and C) in AngularJs?{{Answers}} 37. Why would you use a service over a factory? The Services are singletons.They are ideal for keeping and tracking the state. The factories will always return a new instance for each object. 38. What is a Factory? Factory are used to communicate with servers using HTTP models and persist the application state and change to the across controllers. The factories methodology are use to create the reusable code and feature of applications. 39. What are the differences between $resource and $http? {{Answers}} 40. Can you explain to $on and/or $watch ? {{ Answers }} 42. $scope vs scope in angularjs? {{ Answers }} 43. What difference between ng-app vs. data-ng-app and x-ng-app? {{Answers}} 44. What types of filter in AngularJs? {{ Answers}} 45. What is ng-cloak directive and Why we use? {{Answers}}
  • 6. This file was saved from Inoreader