SlideShare a Scribd company logo
InterviewGully.com 
Shaping up with AngularJS 
The goal of this Video is to get you comfortable with the terminology and the technology and to 
give you an understanding of how AngularJS works. 
What Is a Browser? 
Before we jump straight into our coverage of Angular, it’s important to know what your 
browser is doing when it renders a web page. 
There are many different web browsers are there. The most commonly used today include 
Chrome, Safari, Mozilla Firefox, and Internet Explorer. they all basically do the same thing: fetch 
web pages and display them to the user. 
Your browser gets the HTML text of the page, parses it into a structure that is internally 
meaningful to the browser, lays out the content of the page, and styles the content before 
displaying it to you. All of this work happens behind the scenes. 
Our goal as web developers is to build the structure and content of our web page so that the 
browser will make it look great for our users. 
With Angular, we’re not only building the structure, but we’re constructing the interaction 
between the user and our app as a web application. 
How Web Pages Get to Your Browser 
Let’s think of the Internet as a post office. When you want to send a letter to your friend, you 
first write your message on a piece of paper. Then you write your friend’s address on an 
envelope and place the letter inside of it. 
When you drop the letter off at the post office, the mail sorter looks at the postal code and 
address and tries to find where your friend lives. If she lives in a giant apartment complex, the 
postal service might deliver the mail to your friend’s front desk and let the building’s 
employees sort it out by apartments. 
The Internet works in a similar way. Instead of a bunch of houses and apartments connected by 
Streets, it is a bunch of computers connected by routers and wire. Every computer has a unique 
Address that tells the network how to reach it. 
When you open your web browser on your computer and type in http://interviewgully.com, 
your web Browser “asks” the internet (more precisely, it “asks” a DNS server) where 
interviewgully.com address is.
InterviewGully.com 
If the DNS server knows the IP address you/re looking for, it responds with the address. If not, 
It passes the request along to other DNS servers until the IP address is found and served to your 
Computer. You can see the DNS server response by typing this code into a terminal: 
Once the DNS server responds with the IP address of the computer you’re trying to reach (i.e., 
once It finds interviewgully.com), it also sends a message to the computer located at that IP 
address asking for the web page you’re requesting. 
Now that your computer has the IP address it needs to get http://interviewgully.com, it asks 
the Interviewgully server for the HTML it needs to display the page. 
Once the remote server sends back that HTML, your web browser renders it (i.e., the browser 
works to make the HTML look the way interviewgully.com is designed to look. 
What You Should Already Know 
Before you study AngularJS, you must have a basic understanding of: 
 HTML 
 CSS 
 JavaScript 
Nice to Know 
 Automated Testing 
 BDD – Behavior Driven Development 
 TDD – Test Driven Development 
Why AngularJS? 
AngularJS helps you to organize your javascript. 
Angular help you to create responsive web stuff. 
Angular play very well with JQuery. 
Angular is easy to test. 
What Is AngularJS 
It is a framework that is primarily used to build single-page web applications. AngularJS makes it 
easy to build interactive, modern web applications by increasing the level of abstraction 
between the developer and common web app development tasks. 
The AngularJS team describes it as a “structural framework for dynamic web apps.” 
AngularJS is perfect for SPAs (Single Page Applications).
InterviewGully.com 
AngularJS takes care of advanced features 
• Separation of application logic, data models, and views (MVC Implement) 
• Ajax services 
• Dependency injection 
• Browser history (makes bookmarking and back/forward buttons work like normal web apps) 
• Testing 
• Data Binding 
• Expression 
• Routing 
• Directives 
• Services 
• Filter 
How is it different? 
In other JavaScript frameworks, we are forced to extend from custom JavaScript objects and 
Manipulate the DOM from the outside in. For instance, using jQuery, to add a button in the 
DOM, we’ll have to know where we’re putting the element and insert it in the appropriate 
place: 
var btn = $("<button>Hi</button>"); 
btn.on('click', function(evt) { console.log("Clicked button") }); 
$("#checkoutHolder").append(btn); 
Although this process is not complex, it requires the developer to have knowledge of the entire 
DOM and force our complex logic inside JavaScript code to manipulate a foreign DOM. 
AngularJS, on the other hand, augments HTML to give it native Model-View-Controller (MVC) 
Capabilities. This choice, as it turns out, makes building impressive and expressive client-side 
Applications quick and enjoyable. 
It enables you, the developer, to encapsulate a portion of your entire page as one application, 
rather than forcing the entire page to be an AngularJS application. This distinction is particularly 
beneficial if your workflow already includes another framework or if you want to make a 
portion of the page dynamic while the rest operates as a static page or is controlled by another 
JavaScript framework. 
Additionally, the AngularJS team has made it a point to keep the library small when 
compressed, such that it does not impose heavy penalties for using it (the compressed, minified
InterviewGully.com 
version weighs in under 9KB at the time of this writing). This feature makes AngularJS 
particularly good for prototyping new features. 
Traditional Webpage refresh 
Responsive website (Using AngularJS)
InterviewGully.com 
Simple Example 
<!DOCTYPE html> 
<html ng-app> 
<head> 
<title> InterviewGully Simple Application Example</title> 
<script 
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.js"> 
</script> 
</head> 
<body> 
<input ng-model="name" type="text" placeholder="Your name"> 
<h1>Hello {{ name }}</h1> 
</body> 
</html>

More Related Content

What's hot (20)

PPTX
Why angular js Framework
Sakthi Bro
 
PPTX
Angular js
Dinusha Nandika
 
PPTX
Angular js for beginners
Munir Hoque
 
PDF
Introduction to AngularJS
Jussi Pohjolainen
 
PPTX
Angular js
ParmarAnisha
 
PPTX
Introduction to AngularJS
David Parsons
 
PDF
AngularJS: an introduction
Luigi De Russis
 
PPTX
Understanding angular js
Aayush Shrestha
 
PDF
AngularJS
Hiten Pratap Singh
 
PPTX
Angular Js Basics
أحمد عبد الوهاب
 
PDF
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 
PPTX
Angularjs PPT
Amit Baghel
 
PDF
Angular js
Knoldus Inc.
 
PPTX
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
 
PPTX
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
PDF
Introduction of angular js
Tamer Solieman
 
PDF
AngularJS Best Practices
Betclic Everest Group Tech Team
 
PPTX
AngularJS One Day Workshop
Shyam Seshadri
 
PDF
Introduction to AngularJS
Aldo Pizzagalli
 
Why angular js Framework
Sakthi Bro
 
Angular js
Dinusha Nandika
 
Angular js for beginners
Munir Hoque
 
Introduction to AngularJS
Jussi Pohjolainen
 
Angular js
ParmarAnisha
 
Introduction to AngularJS
David Parsons
 
AngularJS: an introduction
Luigi De Russis
 
Understanding angular js
Aayush Shrestha
 
Angular Js Basics
أحمد عبد الوهاب
 
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 
Angularjs PPT
Amit Baghel
 
Angular js
Knoldus Inc.
 
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
Introduction of angular js
Tamer Solieman
 
AngularJS Best Practices
Betclic Everest Group Tech Team
 
AngularJS One Day Workshop
Shyam Seshadri
 
Introduction to AngularJS
Aldo Pizzagalli
 

Viewers also liked (14)

PDF
Getting Started with the Angular 2 CLI
Jim Lynch
 
DOCX
ABarker 2016
Autumn Barker
 
DOCX
Leo Fang Resume Revised 8.21.14
Xiangyi Fang
 
PDF
Patricia.Mattesi.Resume
Mattesi Patty
 
DOCX
Stephanie Stoffella Resume
Stephanie Stoffella, MBA
 
PDF
Fundamentals and Implementations of Angular JS with renowned Technology Platf...
OptiSol Business Solutions
 
PDF
Real estate investor business plan
laburun
 
PDF
Resume_Cheryl Hunnicutt 2015 no address
Cheryl Hunnicutt
 
PDF
About Workday
Workday
 
DOCX
Bruce Laymon Updated Resume 2015
Bruce Laymon
 
PDF
Resume (2)
Debasish Panda
 
DOC
Rizwana-Shaikh_Angular JS Profile
Rizwana Shaikh
 
DOCX
Chandra Sekhar Cheekuru NET UI
Chandra Sekhar
 
DOC
Resume fb analyst
Fahmida Begum
 
Getting Started with the Angular 2 CLI
Jim Lynch
 
ABarker 2016
Autumn Barker
 
Leo Fang Resume Revised 8.21.14
Xiangyi Fang
 
Patricia.Mattesi.Resume
Mattesi Patty
 
Stephanie Stoffella Resume
Stephanie Stoffella, MBA
 
Fundamentals and Implementations of Angular JS with renowned Technology Platf...
OptiSol Business Solutions
 
Real estate investor business plan
laburun
 
Resume_Cheryl Hunnicutt 2015 no address
Cheryl Hunnicutt
 
About Workday
Workday
 
Bruce Laymon Updated Resume 2015
Bruce Laymon
 
Resume (2)
Debasish Panda
 
Rizwana-Shaikh_Angular JS Profile
Rizwana Shaikh
 
Chandra Sekhar Cheekuru NET UI
Chandra Sekhar
 
Resume fb analyst
Fahmida Begum
 
Ad

Similar to Shaping up with angular JS (20)

PDF
What are the reasons behind growing popularity of AngularJS.pdf
mohitd6
 
PPTX
Ajs ppt
Avyaya Tarnaka
 
PPTX
Anjular js
Naga Dinesh
 
PPT
Angularjs for kolkata drupal meetup
Goutam Dey
 
PDF
[Ebooks PDF] download AngularJS 1st Edition Brad Green full chapters
kiciunonge
 
DOCX
Angular js getting started
Hemant Mali
 
PDF
AngularJS A comprehensive beginner s guide to angular js 3nd Edition Rufus St...
vivaanpulcha
 
PPTX
Angular js slides
Amr Abd El Latief
 
PPTX
Angular js 1.3 presentation for fed nov 2014
Sarah Hudson
 
PPTX
Angularjs basic part01
Mohd Abdul Baquee
 
PPTX
AngularJS is awesome
Eusebiu Schipor
 
DOCX
angularjs_tutorial.docx
telegramvip
 
PPTX
Angular JS training institute in Jaipur
HEMANT SAXENA
 
PPTX
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
PPTX
AngularJs Basic Concept
Hari Haran
 
PPTX
Angular JS - Introduction
Sagar Acharya
 
PPTX
Overview about AngularJS Framework
Camilo Lopes
 
PDF
Angular js book
Kamlesh Singh
 
PDF
Angularjs
Heinrrich Facho
 
What are the reasons behind growing popularity of AngularJS.pdf
mohitd6
 
Anjular js
Naga Dinesh
 
Angularjs for kolkata drupal meetup
Goutam Dey
 
[Ebooks PDF] download AngularJS 1st Edition Brad Green full chapters
kiciunonge
 
Angular js getting started
Hemant Mali
 
AngularJS A comprehensive beginner s guide to angular js 3nd Edition Rufus St...
vivaanpulcha
 
Angular js slides
Amr Abd El Latief
 
Angular js 1.3 presentation for fed nov 2014
Sarah Hudson
 
Angularjs basic part01
Mohd Abdul Baquee
 
AngularJS is awesome
Eusebiu Schipor
 
angularjs_tutorial.docx
telegramvip
 
Angular JS training institute in Jaipur
HEMANT SAXENA
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
AngularJs Basic Concept
Hari Haran
 
Angular JS - Introduction
Sagar Acharya
 
Overview about AngularJS Framework
Camilo Lopes
 
Angular js book
Kamlesh Singh
 
Angularjs
Heinrrich Facho
 
Ad

Recently uploaded (20)

PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
Introduction presentation of the patentbutler tool
MIPLM
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
Introduction to Indian Writing in English
Trushali Dodiya
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
Horarios de distribución de agua en julio
pegazohn1978
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 

Shaping up with angular JS

  • 1. InterviewGully.com Shaping up with AngularJS The goal of this Video is to get you comfortable with the terminology and the technology and to give you an understanding of how AngularJS works. What Is a Browser? Before we jump straight into our coverage of Angular, it’s important to know what your browser is doing when it renders a web page. There are many different web browsers are there. The most commonly used today include Chrome, Safari, Mozilla Firefox, and Internet Explorer. they all basically do the same thing: fetch web pages and display them to the user. Your browser gets the HTML text of the page, parses it into a structure that is internally meaningful to the browser, lays out the content of the page, and styles the content before displaying it to you. All of this work happens behind the scenes. Our goal as web developers is to build the structure and content of our web page so that the browser will make it look great for our users. With Angular, we’re not only building the structure, but we’re constructing the interaction between the user and our app as a web application. How Web Pages Get to Your Browser Let’s think of the Internet as a post office. When you want to send a letter to your friend, you first write your message on a piece of paper. Then you write your friend’s address on an envelope and place the letter inside of it. When you drop the letter off at the post office, the mail sorter looks at the postal code and address and tries to find where your friend lives. If she lives in a giant apartment complex, the postal service might deliver the mail to your friend’s front desk and let the building’s employees sort it out by apartments. The Internet works in a similar way. Instead of a bunch of houses and apartments connected by Streets, it is a bunch of computers connected by routers and wire. Every computer has a unique Address that tells the network how to reach it. When you open your web browser on your computer and type in http://interviewgully.com, your web Browser “asks” the internet (more precisely, it “asks” a DNS server) where interviewgully.com address is.
  • 2. InterviewGully.com If the DNS server knows the IP address you/re looking for, it responds with the address. If not, It passes the request along to other DNS servers until the IP address is found and served to your Computer. You can see the DNS server response by typing this code into a terminal: Once the DNS server responds with the IP address of the computer you’re trying to reach (i.e., once It finds interviewgully.com), it also sends a message to the computer located at that IP address asking for the web page you’re requesting. Now that your computer has the IP address it needs to get http://interviewgully.com, it asks the Interviewgully server for the HTML it needs to display the page. Once the remote server sends back that HTML, your web browser renders it (i.e., the browser works to make the HTML look the way interviewgully.com is designed to look. What You Should Already Know Before you study AngularJS, you must have a basic understanding of:  HTML  CSS  JavaScript Nice to Know  Automated Testing  BDD – Behavior Driven Development  TDD – Test Driven Development Why AngularJS? AngularJS helps you to organize your javascript. Angular help you to create responsive web stuff. Angular play very well with JQuery. Angular is easy to test. What Is AngularJS It is a framework that is primarily used to build single-page web applications. AngularJS makes it easy to build interactive, modern web applications by increasing the level of abstraction between the developer and common web app development tasks. The AngularJS team describes it as a “structural framework for dynamic web apps.” AngularJS is perfect for SPAs (Single Page Applications).
  • 3. InterviewGully.com AngularJS takes care of advanced features • Separation of application logic, data models, and views (MVC Implement) • Ajax services • Dependency injection • Browser history (makes bookmarking and back/forward buttons work like normal web apps) • Testing • Data Binding • Expression • Routing • Directives • Services • Filter How is it different? In other JavaScript frameworks, we are forced to extend from custom JavaScript objects and Manipulate the DOM from the outside in. For instance, using jQuery, to add a button in the DOM, we’ll have to know where we’re putting the element and insert it in the appropriate place: var btn = $("<button>Hi</button>"); btn.on('click', function(evt) { console.log("Clicked button") }); $("#checkoutHolder").append(btn); Although this process is not complex, it requires the developer to have knowledge of the entire DOM and force our complex logic inside JavaScript code to manipulate a foreign DOM. AngularJS, on the other hand, augments HTML to give it native Model-View-Controller (MVC) Capabilities. This choice, as it turns out, makes building impressive and expressive client-side Applications quick and enjoyable. It enables you, the developer, to encapsulate a portion of your entire page as one application, rather than forcing the entire page to be an AngularJS application. This distinction is particularly beneficial if your workflow already includes another framework or if you want to make a portion of the page dynamic while the rest operates as a static page or is controlled by another JavaScript framework. Additionally, the AngularJS team has made it a point to keep the library small when compressed, such that it does not impose heavy penalties for using it (the compressed, minified
  • 4. InterviewGully.com version weighs in under 9KB at the time of this writing). This feature makes AngularJS particularly good for prototyping new features. Traditional Webpage refresh Responsive website (Using AngularJS)
  • 5. InterviewGully.com Simple Example <!DOCTYPE html> <html ng-app> <head> <title> InterviewGully Simple Application Example</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.js"> </script> </head> <body> <input ng-model="name" type="text" placeholder="Your name"> <h1>Hello {{ name }}</h1> </body> </html>