SlideShare a Scribd company logo
AngularJS-Getting Started
AngularJS is an open source web application framework maintained by Google and the
community to assist the single page application. Angular team calls it as the “Structural
Framework for dynamic web application”. It is a client-side technology completely written in
JavaScript. Its goal is to expand the web applications with Model-View-Controller (MVC)
capability and make development and testing easier.
AngularJS Features:
1. Two way data binding
2. Routing
3. MVC
4. Templates
5. Directives
6. History
7. Dependency injection
8. Testing
Because of these features AngularJS makes client side development easier.
AngularJS architecture
Now, Let’s have look at some of the architectural considerations of AngularJS
1. Two way data binding: AngularJS supports two way data binding. This means user inputs
in form field is automatically updated into angular models. So, that you don’t need to
watch specific events and respond to those events also don’t need to update the HTML
manually instead angular will handle it.
2. Dirty checking: AngularJS implies the concept of dirty checking. You don’t need to put the
data into specialstructures and callthe getter and setter methods. Just put your data into
simple plane old JavaScript objects and angular will respond whenever data changes and
update the view automatically.
3. Dependencyinjection:AngularJScomes with inbuilt dependency injection. You can divide
your application into different components which AngularJS can inject into each other.
Simply, it encapsulates the different pieces of application and improves the testability.
AngularJS components
Let’s have look at some of the important components of AngularJS.
1. Controllers:
a. Are the central component of any angular application
b. Controllers coordinate view and model
c. Handle the view interaction
2. Views:
a. Used for presenting data.
b. Composed of HTML templates, data binding expressions, directives and filters
3. Services:
a. Handles the non-view logic(business logic)
b. Communicate with the server
c. Hold data and state
4. Directives:
a. Way to teach HTML new tricks
b. Used to create custom HTML elements
c. Used for DOM manipulation
Getting started
To get started with the angular application just add the reference to AngularJS library. To
add the reference goto https://angularjs.org.
Once you have added the AngularJS script into page you are ready to start using it.
Now, just add a text box which allow you to type your name.
When you run above code nothing much will happen. You will just see a text box and as you type
nothing will happen.
Let’s say you want to see the value what you type in text box.
First thing add ng-app directive into html tag also ng-model.
ng-app: once you add the ng-app directive and run the application, first the angular script loads
and ng-app will initialize the application.
ng-model: what ng-model will do is ,it will add property up in the memory called “name” into
what is called as “scope”. Behind the scenes it will make an empty ViewModel and then filling it
with a “name” property.
Now, if you want to write out the value you type into the text box created earlier, then just add
a data binding expression. In angularjs “{{ }}” are used to bind the data.
Now, let’s go ahead and run, this how output looks
Find the below plunker link to test the code.
http://plnkr.co/edit/KESbO7xT4F7zZOPxFOJR?p=preview
This is a very simple example of angularjs just to get started and get feel of angular.
In the next part we will see some core concepts like controllers, modules, factories etc.
Stay tuned for more on AngularJS.

More Related Content

PPTX
Dive into Angular, part 4: Angular 2.0
Oleksii Prohonnyi
 
PPTX
Controllers in AngularJs
K Arunkumar
 
PPTX
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
PPTX
Dive into Angular, part 3: Performance
Oleksii Prohonnyi
 
PPTX
Dive into Angular, part 5: Experience
Oleksii Prohonnyi
 
PPTX
Code migration from Angular 1.x to Angular 2.0
Ran Wahle
 
PDF
AngularJS interview questions
Uri Lukach
 
PPTX
Angularjs PPT
Amit Baghel
 
Dive into Angular, part 4: Angular 2.0
Oleksii Prohonnyi
 
Controllers in AngularJs
K Arunkumar
 
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
Dive into Angular, part 3: Performance
Oleksii Prohonnyi
 
Dive into Angular, part 5: Experience
Oleksii Prohonnyi
 
Code migration from Angular 1.x to Angular 2.0
Ran Wahle
 
AngularJS interview questions
Uri Lukach
 
Angularjs PPT
Amit Baghel
 

What's hot (20)

PDF
AngularJS
Hiten Pratap Singh
 
PDF
AngularJS for Beginners
Edureka!
 
DOCX
Angular.js interview questions
codeandyou forums
 
PPTX
Introduction to AngularJS
David Parsons
 
PPTX
AngularJS 1.x training
Roberto Ramadhin
 
PPTX
OCTO BOF - How to build Netvibes with AngularJS
Jonathan Meiss
 
PDF
AngularJs Style Guide
Chiew Carol
 
PPTX
The A1 "AngularJS 1 Kick Start"
Christian John Felix
 
DOCX
AngularJS
Ermir Hoxhaj
 
PDF
Web components are the future of the web - Take advantage of new web technolo...
Marios Fakiolas
 
PDF
Introduction To Angular 4 - J2I
Nader Debbabi
 
ODP
Angular 6 - The Complete Guide
Sam Dias
 
PPTX
Angular 9
Raja Vishnu
 
PPTX
AngularJS Fundamentals + WebAPI
Eric Wise
 
PDF
Angular 2 - How we got here?
Marios Fakiolas
 
PDF
Angular.js - JS Camp UKraine 2013
Max Klymyshyn
 
PDF
Itroducing Angular JS
Carlos Emanuel Mathiasen
 
PDF
Angular from Scratch
Christian Lilley
 
PPTX
Building The SpringGraph Flex Component
Guo Albert
 
PDF
The productive developer guide to Angular 2
Maurice De Beijer [MVP]
 
AngularJS
Hiten Pratap Singh
 
AngularJS for Beginners
Edureka!
 
Angular.js interview questions
codeandyou forums
 
Introduction to AngularJS
David Parsons
 
AngularJS 1.x training
Roberto Ramadhin
 
OCTO BOF - How to build Netvibes with AngularJS
Jonathan Meiss
 
AngularJs Style Guide
Chiew Carol
 
The A1 "AngularJS 1 Kick Start"
Christian John Felix
 
AngularJS
Ermir Hoxhaj
 
Web components are the future of the web - Take advantage of new web technolo...
Marios Fakiolas
 
Introduction To Angular 4 - J2I
Nader Debbabi
 
Angular 6 - The Complete Guide
Sam Dias
 
Angular 9
Raja Vishnu
 
AngularJS Fundamentals + WebAPI
Eric Wise
 
Angular 2 - How we got here?
Marios Fakiolas
 
Angular.js - JS Camp UKraine 2013
Max Klymyshyn
 
Itroducing Angular JS
Carlos Emanuel Mathiasen
 
Angular from Scratch
Christian Lilley
 
Building The SpringGraph Flex Component
Guo Albert
 
The productive developer guide to Angular 2
Maurice De Beijer [MVP]
 
Ad

Viewers also liked (10)

PPT
Six steps to oral fluency - British Council Teachers Conference 2015: "Learni...
Chris_Fry_Barcelona
 
PPTX
Effective feedback in your classroom
Patrick McQueeney
 
PDF
Learning Together: Feedback for Students and Teachers
Steve Chase
 
PDF
Classdroid extended - an application for improving feedback between teachers ...
jschuchter
 
PPTX
Classroom comparisons: Student-student interactions, Corrective Feedback in t...
Ercan Aksoy
 
PPTX
Revised classroom question presentation
Xyleanne Alforte
 
PPSX
Teaching large classes
Ahmed Mayouf
 
PPT
Large classes
cnast
 
PPT
Management Strategies in Crowded Classes
Muhammad Masaud Asdaque
 
PDF
Practical Tips for Teaching Large Classes
BPG
 
Six steps to oral fluency - British Council Teachers Conference 2015: "Learni...
Chris_Fry_Barcelona
 
Effective feedback in your classroom
Patrick McQueeney
 
Learning Together: Feedback for Students and Teachers
Steve Chase
 
Classdroid extended - an application for improving feedback between teachers ...
jschuchter
 
Classroom comparisons: Student-student interactions, Corrective Feedback in t...
Ercan Aksoy
 
Revised classroom question presentation
Xyleanne Alforte
 
Teaching large classes
Ahmed Mayouf
 
Large classes
cnast
 
Management Strategies in Crowded Classes
Muhammad Masaud Asdaque
 
Practical Tips for Teaching Large Classes
BPG
 
Ad

Similar to Angular js getting started (20)

PDF
One Weekend With AngularJS
Yashobanta Bai
 
PPTX
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
PPTX
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
PPTX
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
PDF
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdf
sarah david
 
PDF
angularjs-vs-angular-the-key-differences-between-javascript-and-typescript
Cuneiform Consulting Pvt Ltd.
 
PDF
Angular Project Report
Kodexhub
 
PDF
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdf
sarah david
 
PPTX
Angular 6 Training with project in hyderabad india
php2ranjan
 
PDF
The A1 by Christian John Felix
DEVCON
 
PDF
AngularJS
NexThoughts Technologies
 
PPTX
Intoduction to Angularjs
Gaurav Agrawal
 
PDF
Angular js interview question answer for fresher
Ravi Bhadauria
 
PDF
AngularJS By Vipin
Vipin Mundayad
 
PPSX
Angular js
Arun Somu Panneerselvam
 
PPTX
Angularjs overview
VickyCmd
 
PPTX
Angular js
Ramakrishna kapa
 
DOCX
angularjs_tutorial.docx
telegramvip
 
PPTX
Angular kickstart slideshare
SaleemMalik52
 
PPTX
Angularjs on line training
Jahan Murugassan
 
One Weekend With AngularJS
Yashobanta Bai
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdf
sarah david
 
angularjs-vs-angular-the-key-differences-between-javascript-and-typescript
Cuneiform Consulting Pvt Ltd.
 
Angular Project Report
Kodexhub
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdf
sarah david
 
Angular 6 Training with project in hyderabad india
php2ranjan
 
The A1 by Christian John Felix
DEVCON
 
Intoduction to Angularjs
Gaurav Agrawal
 
Angular js interview question answer for fresher
Ravi Bhadauria
 
AngularJS By Vipin
Vipin Mundayad
 
Angularjs overview
VickyCmd
 
Angular js
Ramakrishna kapa
 
angularjs_tutorial.docx
telegramvip
 
Angular kickstart slideshare
SaleemMalik52
 
Angularjs on line training
Jahan Murugassan
 

Recently uploaded (20)

PPT
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Architecture of the Future (09152021)
EdwardMeyman
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
Comunidade Salesforce SĂŁo Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira JĂșnior
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
Software Development Company | KodekX
KodekX
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Architecture of the Future (09152021)
EdwardMeyman
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
This slide provides an overview Technology
mineshkharadi333
 
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Comunidade Salesforce SĂŁo Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira JĂșnior
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 

Angular js getting started

  • 1. AngularJS-Getting Started AngularJS is an open source web application framework maintained by Google and the community to assist the single page application. Angular team calls it as the “Structural Framework for dynamic web application”. It is a client-side technology completely written in JavaScript. Its goal is to expand the web applications with Model-View-Controller (MVC) capability and make development and testing easier. AngularJS Features: 1. Two way data binding 2. Routing 3. MVC 4. Templates 5. Directives 6. History 7. Dependency injection 8. Testing Because of these features AngularJS makes client side development easier. AngularJS architecture Now, Let’s have look at some of the architectural considerations of AngularJS 1. Two way data binding: AngularJS supports two way data binding. This means user inputs in form field is automatically updated into angular models. So, that you don’t need to watch specific events and respond to those events also don’t need to update the HTML manually instead angular will handle it.
  • 2. 2. Dirty checking: AngularJS implies the concept of dirty checking. You don’t need to put the data into specialstructures and callthe getter and setter methods. Just put your data into simple plane old JavaScript objects and angular will respond whenever data changes and update the view automatically. 3. Dependencyinjection:AngularJScomes with inbuilt dependency injection. You can divide your application into different components which AngularJS can inject into each other. Simply, it encapsulates the different pieces of application and improves the testability. AngularJS components Let’s have look at some of the important components of AngularJS. 1. Controllers: a. Are the central component of any angular application b. Controllers coordinate view and model c. Handle the view interaction 2. Views: a. Used for presenting data. b. Composed of HTML templates, data binding expressions, directives and filters 3. Services: a. Handles the non-view logic(business logic) b. Communicate with the server c. Hold data and state 4. Directives: a. Way to teach HTML new tricks b. Used to create custom HTML elements c. Used for DOM manipulation Getting started To get started with the angular application just add the reference to AngularJS library. To add the reference goto https://angularjs.org. Once you have added the AngularJS script into page you are ready to start using it.
  • 3. Now, just add a text box which allow you to type your name. When you run above code nothing much will happen. You will just see a text box and as you type nothing will happen. Let’s say you want to see the value what you type in text box. First thing add ng-app directive into html tag also ng-model. ng-app: once you add the ng-app directive and run the application, first the angular script loads and ng-app will initialize the application. ng-model: what ng-model will do is ,it will add property up in the memory called “name” into what is called as “scope”. Behind the scenes it will make an empty ViewModel and then filling it with a “name” property. Now, if you want to write out the value you type into the text box created earlier, then just add a data binding expression. In angularjs “{{ }}” are used to bind the data.
  • 4. Now, let’s go ahead and run, this how output looks Find the below plunker link to test the code. http://plnkr.co/edit/KESbO7xT4F7zZOPxFOJR?p=preview This is a very simple example of angularjs just to get started and get feel of angular. In the next part we will see some core concepts like controllers, modules, factories etc. Stay tuned for more on AngularJS.