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
PPTX
Controllers in AngularJs
PPTX
Dive into Angular, part 1: Introduction
PPTX
Dive into Angular, part 3: Performance
PPTX
Dive into Angular, part 5: Experience
PPTX
Code migration from Angular 1.x to Angular 2.0
PDF
AngularJS interview questions
PPTX
Angularjs PPT
Dive into Angular, part 4: Angular 2.0
Controllers in AngularJs
Dive into Angular, part 1: Introduction
Dive into Angular, part 3: Performance
Dive into Angular, part 5: Experience
Code migration from Angular 1.x to Angular 2.0
AngularJS interview questions
Angularjs PPT

What's hot (20)

PDF
PDF
AngularJS for Beginners
DOCX
Angular.js interview questions
PPTX
Introduction to AngularJS
PPTX
AngularJS 1.x training
PPTX
OCTO BOF - How to build Netvibes with AngularJS
PDF
AngularJs Style Guide
PPTX
The A1 "AngularJS 1 Kick Start"
DOCX
AngularJS
PDF
Web components are the future of the web - Take advantage of new web technolo...
PDF
Introduction To Angular 4 - J2I
ODP
Angular 6 - The Complete Guide
PPTX
Angular 9
PPTX
AngularJS Fundamentals + WebAPI
PDF
Angular 2 - How we got here?
PDF
Angular.js - JS Camp UKraine 2013
PDF
Itroducing Angular JS
PDF
Angular from Scratch
PPTX
Building The SpringGraph Flex Component
PDF
The productive developer guide to Angular 2
AngularJS for Beginners
Angular.js interview questions
Introduction to AngularJS
AngularJS 1.x training
OCTO BOF - How to build Netvibes with AngularJS
AngularJs Style Guide
The A1 "AngularJS 1 Kick Start"
AngularJS
Web components are the future of the web - Take advantage of new web technolo...
Introduction To Angular 4 - J2I
Angular 6 - The Complete Guide
Angular 9
AngularJS Fundamentals + WebAPI
Angular 2 - How we got here?
Angular.js - JS Camp UKraine 2013
Itroducing Angular JS
Angular from Scratch
Building The SpringGraph Flex Component
The productive developer guide to Angular 2
Ad

Viewers also liked (10)

PPT
Six steps to oral fluency - British Council Teachers Conference 2015: "Learni...
PPTX
Effective feedback in your classroom
PDF
Learning Together: Feedback for Students and Teachers
PDF
Classdroid extended - an application for improving feedback between teachers ...
PPTX
Classroom comparisons: Student-student interactions, Corrective Feedback in t...
PPTX
Revised classroom question presentation
PPSX
Teaching large classes
PPT
Large classes
PPT
Management Strategies in Crowded Classes
PDF
Practical Tips for Teaching Large Classes
 
Six steps to oral fluency - British Council Teachers Conference 2015: "Learni...
Effective feedback in your classroom
Learning Together: Feedback for Students and Teachers
Classdroid extended - an application for improving feedback between teachers ...
Classroom comparisons: Student-student interactions, Corrective Feedback in t...
Revised classroom question presentation
Teaching large classes
Large classes
Management Strategies in Crowded Classes
Practical Tips for Teaching Large Classes
 
Ad

Similar to Angular js getting started (20)

PDF
One Weekend With AngularJS
PPTX
Kalp Corporate Angular Js Tutorials
PPTX
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
PDF
AngularJS By Vipin
PPTX
Angularjs basic part01
PPTX
AngularJS is awesome
PPTX
Intoduction to Angularjs
PPTX
AngularJs Basic Concept
PPTX
Training On Angular Js
PPTX
AngularJS Introduction, how to run Angular
PPTX
ME vs WEB - AngularJS Fundamentals
PPTX
Learning AngularJS - Complete coverage of AngularJS features and concepts
PPTX
Intro to AngularJs
PDF
AngularJS Workshop
PPTX
Angular js
PPTX
Angular Javascript Tutorial with command
PPTX
Valentine with Angular js - Introduction
PPTX
Anjular js
PPTX
Angular workshop - Full Development Guide
PPTX
Angular JS training institute in Jaipur
One Weekend With AngularJS
Kalp Corporate Angular Js Tutorials
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS By Vipin
Angularjs basic part01
AngularJS is awesome
Intoduction to Angularjs
AngularJs Basic Concept
Training On Angular Js
AngularJS Introduction, how to run Angular
ME vs WEB - AngularJS Fundamentals
Learning AngularJS - Complete coverage of AngularJS features and concepts
Intro to AngularJs
AngularJS Workshop
Angular js
Angular Javascript Tutorial with command
Valentine with Angular js - Introduction
Anjular js
Angular workshop - Full Development Guide
Angular JS training institute in Jaipur

Recently uploaded (20)

PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
A review of recent deep learning applications in wood surface defect identifi...
PPTX
The various Industrial Revolutions .pptx
PPTX
Configure Apache Mutual Authentication
PDF
Five Habits of High-Impact Board Members
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
CloudStack 4.21: First Look Webinar slides
PPTX
Chapter 5: Probability Theory and Statistics
PDF
STKI Israel Market Study 2025 version august
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
2018-HIPAA-Renewal-Training for executives
DOCX
search engine optimization ppt fir known well about this
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PDF
Architecture types and enterprise applications.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
A review of recent deep learning applications in wood surface defect identifi...
The various Industrial Revolutions .pptx
Configure Apache Mutual Authentication
Five Habits of High-Impact Board Members
A proposed approach for plagiarism detection in Myanmar Unicode text
Enhancing emotion recognition model for a student engagement use case through...
sbt 2.0: go big (Scala Days 2025 edition)
CloudStack 4.21: First Look Webinar slides
Chapter 5: Probability Theory and Statistics
STKI Israel Market Study 2025 version august
Module 1.ppt Iot fundamentals and Architecture
2018-HIPAA-Renewal-Training for executives
search engine optimization ppt fir known well about this
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
OpenACC and Open Hackathons Monthly Highlights July 2025
Architecture types and enterprise applications.pdf
NewMind AI Weekly Chronicles – August ’25 Week III
Developing a website for English-speaking practice to English as a foreign la...
Convolutional neural network based encoder-decoder for efficient real-time ob...

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.