SlideShare a Scribd company logo
Getting Started with AngularJS
Senthil Kumar
Microsoft MVP – Windows Platform Development
MobileOSGeek.com
About Me
• Work for Trivium eSolutions , Bangalore
• Microsoft MVP in Windows Platform
Development.
• Speaker , Blogger and Software Engineer
• BDotNetter
• Blog about Mobile development at
MobileOSGeek.com
• Twitter : @isenthil
Valentine with Angular js - Introduction
Valentine with Angular js - Introduction
Valentine with Angular js - Introduction
Agenda
• What is Angular ?
• Why Angular ?
• Ways of getting angular
• Basic Concepts
• Quick Demo
What is AngularJS?
Angular JS facts
• Open-source JavaScript framework
• For Creating Single Page Applications.
• Developed in 2009 by Miško Hevery and Adam Abrons
• Maintained by Google
• Actively developed and supported.
• GitHub: https://github.com/angular/angular.js
Why AngularJS ?
• Faster way to create Web Applications.
• The problem – HTML is great for static pages, but has no tools for
web applications.
• The solution – extend and adapt HTML vocabulary with some
additional declarations that are useful for web applications
• Excellent templating engine (integral part of HTML)
• Easily load Json Data
• MVC Architecture
Core Features
• Directives
• Data Binding
• Filters
More benefits
• Less boilerplate code
• Better focus on the Logic
• Efficiency in development
• Separation of concerns
Getting AngularJS
• Including angular scripts from the Google CDN
• Point your html <script> tag to a Google CDN URL.
• angular.js — This is the human-readable, non-minified version, suitable for web
development.
• angular.min.js — This is the minified version, which we strongly suggest you
use in production.
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js">
</script>
• Downloading and hosting angular files locally
http://code.angularjs.org/
Getting Angular JS
• Install the latest version of GitHub for Windows from
https://windows.github.com/
• Bower: We use Bower to manage client-side packages for the docs.
Install the bower command-line tool globally with:
• npm install -g bower
• Visual Studio NugetPackage Manager
Angular JS is MVC
• MVC = Model-View-Controller
• Less dependencies
• Improves maintainability
• It is easier to read and understand code
MVC
Model
The data
Controller
The behavior
Modifying / updating the models
View
The interface
How the data is presented to the user
JavaScript
HTML
Data Binding
Views are declarative
The structure of the interface
Controllers do not need to directly manipulate the view
Changes in the models / data are automatically reflected in the view
Updates are managed by the framework
No DOM manipulation boilerplate needed!
Views
Make use of special ng attributes (directives) on the HTML elements
ng-app
• Determines which part of the page will use AngularJS
• If given a value it will load that application module
ng-controller
• Determines which Javascript Controller should be used for that part of the page
ng-model
• Determines what model the value of an input field will be bound to
• Used for two-way binding
Views
{{ }}
Angular expressions
• Like JavaScript expressions except:
• Evaluated in the current scope not the global window
• More forgiving to undefined and null errors
Insert model values directly into the view
Controller
Function that takes at least one parameter: $scope
Function is a constructor
Ex:
• function MyCtrl($scope) { … }
We will see a different way of creating a controller constructor later
$scope
JavaScript object
Contains data (i.e. models) and methods (i.e. functions)
Can add own properties
• $scope.<my new property> = <value>;
Controller
Dependency Injection
Pass the modules and services that you need as parameters
In the previous case $scope is a service that will be injected
Can be passed as an array of strings to the controller function as well
• Prevents errors when performing minification
Other useful services
• $http
• Used to handle Ajax calls
• Wrappers around jQuery
Controller
Typically also contains module loading
angular.module(<name>, [<dependencies>]);
Creates a module with the given name
This module can then be configured
Ex.
• var myApp = angular.module(‘myApp’, []);
myApp.controller(‘MyCtrl’, function($scope) { … });
myApp.controller(‘OtherCtrl’, [‘$scope’, ‘$http’, function($scope, $http) { … }]);
Modules
Can be used to separate the application into parts
Application module can include the other modules by listing them as
dependencies
Modules
var myControllers = angular.module(‘myControllers’, []);
// Add controllers to the module
myControllers.controller(…);
var myApp = angular.module(‘myApp’, [‘myControllers’]);
Models
Properties on the Controller’s $scope object
Standard JavaScript values
More
To learn more:
Tutorial: http://docs.angularjs.org/tutorial
Documentation: http://docs.angularjs.org/guide/overview

More Related Content

PPTX
Introduction to Angular JS
PPTX
Entity Framework Core 1.0
PPTX
Angular 4
PPTX
Introduction of ASP.NET MVC and AngularJS
PPTX
Angular JS, A dive to concepts
PDF
Introduction to ASP.NET MVC
PPT
Angular js
PPT
Angular js
Introduction to Angular JS
Entity Framework Core 1.0
Angular 4
Introduction of ASP.NET MVC and AngularJS
Angular JS, A dive to concepts
Introduction to ASP.NET MVC
Angular js
Angular js

What's hot (20)

PPTX
Angular js presentation at Datacom
PPTX
AngularJS intro
PPTX
Angularjs Basics
PPTX
Step by Step - AngularJS
PPTX
AngularJS Beginners Workshop
PDF
React.js - and how it changed our thinking about UI
PPTX
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...
PDF
Angular JS tutorial
PDF
Angular 2 overview
PPTX
AngularJS - Architecture decisions in a large project 
PDF
Drupal & AngularJS - DrupalCamp Spain 2014
PDF
Angular2 Development for Java developers
PPTX
AngularJS 2.0
PDF
iOS viper presentation
PPTX
Introduction to angular with a simple but complete project
PDF
AngularJS Basics
PPTX
Introduction to single page application with angular js
PPTX
Mvc framework
PPTX
Front end development with Angular JS
PPTX
React js Online Training
Angular js presentation at Datacom
AngularJS intro
Angularjs Basics
Step by Step - AngularJS
AngularJS Beginners Workshop
React.js - and how it changed our thinking about UI
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...
Angular JS tutorial
Angular 2 overview
AngularJS - Architecture decisions in a large project 
Drupal & AngularJS - DrupalCamp Spain 2014
Angular2 Development for Java developers
AngularJS 2.0
iOS viper presentation
Introduction to angular with a simple but complete project
AngularJS Basics
Introduction to single page application with angular js
Mvc framework
Front end development with Angular JS
React js Online Training
Ad

Similar to Valentine with Angular js - Introduction (20)

PPTX
Angular JS - Introduction
PPTX
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
PPTX
AngularJs (1.x) Presentation
PPTX
AgularJS basics- angular directives and controllers
PPTX
Angularjs
PDF
Angular - Chapter 3 - Components
PPTX
SoCal Code Camp 2011 - ASP.NET MVC 4
PDF
Mini-Training: AngularJS
PDF
Introduction to Angular Js
PPTX
ASP.NEt MVC and Angular What a couple
PPTX
Angular patterns
PPTX
Introduction to Azure Functions
PPTX
Anjular js
PPTX
Angular 9
PPTX
Tech io spa_angularjs_20130814_v0.9.5
PPT
Angularjs for kolkata drupal meetup
PPTX
Intoduction to Angularjs
PPTX
Angular IO
PDF
Introduction to Angularjs : kishan kumar
PPTX
Introduction to Angularjs
Angular JS - Introduction
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
AngularJs (1.x) Presentation
AgularJS basics- angular directives and controllers
Angularjs
Angular - Chapter 3 - Components
SoCal Code Camp 2011 - ASP.NET MVC 4
Mini-Training: AngularJS
Introduction to Angular Js
ASP.NEt MVC and Angular What a couple
Angular patterns
Introduction to Azure Functions
Anjular js
Angular 9
Tech io spa_angularjs_20130814_v0.9.5
Angularjs for kolkata drupal meetup
Intoduction to Angularjs
Angular IO
Introduction to Angularjs : kishan kumar
Introduction to Angularjs
Ad

More from Senthil Kumar (7)

PPTX
New Things in C# 6.0
PPTX
App to App Communication in Windows Phone 8 - VTC 2014
PPTX
Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore
PPTX
Microsoft MVP Mentor Series - Speech features in Windows Phone 8 .
PDF
Windows phone day in Bangalore (Enabling Speech in your Windows Phone Apps)
PDF
Windows phone toolkit Session @ TechCon 2013 , Bangalore
PDF
Location and map api in windows phone 8
New Things in C# 6.0
App to App Communication in Windows Phone 8 - VTC 2014
Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore
Microsoft MVP Mentor Series - Speech features in Windows Phone 8 .
Windows phone day in Bangalore (Enabling Speech in your Windows Phone Apps)
Windows phone toolkit Session @ TechCon 2013 , Bangalore
Location and map api in windows phone 8

Recently uploaded (20)

PPT
Introduction Database Management System for Course Database
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Transform Your Business with a Software ERP System
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
L1 - Introduction to python Backend.pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
top salesforce developer skills in 2025.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
System and Network Administration Chapter 2
PDF
System and Network Administraation Chapter 3
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Odoo POS Development Services by CandidRoot Solutions
Introduction Database Management System for Course Database
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Operating system designcfffgfgggggggvggggggggg
CHAPTER 2 - PM Management and IT Context
Transform Your Business with a Software ERP System
VVF-Customer-Presentation2025-Ver1.9.pptx
How to Choose the Right IT Partner for Your Business in Malaysia
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Odoo Companies in India – Driving Business Transformation.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
L1 - Introduction to python Backend.pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
top salesforce developer skills in 2025.pdf
Design an Analysis of Algorithms II-SECS-1021-03
Navsoft: AI-Powered Business Solutions & Custom Software Development
System and Network Administration Chapter 2
System and Network Administraation Chapter 3
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Odoo POS Development Services by CandidRoot Solutions

Valentine with Angular js - Introduction

  • 1. Getting Started with AngularJS Senthil Kumar Microsoft MVP – Windows Platform Development MobileOSGeek.com
  • 2. About Me • Work for Trivium eSolutions , Bangalore • Microsoft MVP in Windows Platform Development. • Speaker , Blogger and Software Engineer • BDotNetter • Blog about Mobile development at MobileOSGeek.com • Twitter : @isenthil
  • 6. Agenda • What is Angular ? • Why Angular ? • Ways of getting angular • Basic Concepts • Quick Demo
  • 8. Angular JS facts • Open-source JavaScript framework • For Creating Single Page Applications. • Developed in 2009 by Miško Hevery and Adam Abrons • Maintained by Google • Actively developed and supported. • GitHub: https://github.com/angular/angular.js
  • 9. Why AngularJS ? • Faster way to create Web Applications. • The problem – HTML is great for static pages, but has no tools for web applications. • The solution – extend and adapt HTML vocabulary with some additional declarations that are useful for web applications • Excellent templating engine (integral part of HTML) • Easily load Json Data • MVC Architecture
  • 10. Core Features • Directives • Data Binding • Filters
  • 11. More benefits • Less boilerplate code • Better focus on the Logic • Efficiency in development • Separation of concerns
  • 12. Getting AngularJS • Including angular scripts from the Google CDN • Point your html <script> tag to a Google CDN URL. • angular.js — This is the human-readable, non-minified version, suitable for web development. • angular.min.js — This is the minified version, which we strongly suggest you use in production. <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"> </script> • Downloading and hosting angular files locally http://code.angularjs.org/
  • 13. Getting Angular JS • Install the latest version of GitHub for Windows from https://windows.github.com/ • Bower: We use Bower to manage client-side packages for the docs. Install the bower command-line tool globally with: • npm install -g bower • Visual Studio NugetPackage Manager
  • 14. Angular JS is MVC • MVC = Model-View-Controller • Less dependencies • Improves maintainability • It is easier to read and understand code
  • 15. MVC Model The data Controller The behavior Modifying / updating the models View The interface How the data is presented to the user JavaScript HTML
  • 16. Data Binding Views are declarative The structure of the interface Controllers do not need to directly manipulate the view Changes in the models / data are automatically reflected in the view Updates are managed by the framework No DOM manipulation boilerplate needed!
  • 17. Views Make use of special ng attributes (directives) on the HTML elements ng-app • Determines which part of the page will use AngularJS • If given a value it will load that application module ng-controller • Determines which Javascript Controller should be used for that part of the page ng-model • Determines what model the value of an input field will be bound to • Used for two-way binding
  • 18. Views {{ }} Angular expressions • Like JavaScript expressions except: • Evaluated in the current scope not the global window • More forgiving to undefined and null errors Insert model values directly into the view
  • 19. Controller Function that takes at least one parameter: $scope Function is a constructor Ex: • function MyCtrl($scope) { … } We will see a different way of creating a controller constructor later $scope JavaScript object Contains data (i.e. models) and methods (i.e. functions) Can add own properties • $scope.<my new property> = <value>;
  • 20. Controller Dependency Injection Pass the modules and services that you need as parameters In the previous case $scope is a service that will be injected Can be passed as an array of strings to the controller function as well • Prevents errors when performing minification Other useful services • $http • Used to handle Ajax calls • Wrappers around jQuery
  • 21. Controller Typically also contains module loading angular.module(<name>, [<dependencies>]); Creates a module with the given name This module can then be configured Ex. • var myApp = angular.module(‘myApp’, []); myApp.controller(‘MyCtrl’, function($scope) { … }); myApp.controller(‘OtherCtrl’, [‘$scope’, ‘$http’, function($scope, $http) { … }]);
  • 22. Modules Can be used to separate the application into parts Application module can include the other modules by listing them as dependencies
  • 23. Modules var myControllers = angular.module(‘myControllers’, []); // Add controllers to the module myControllers.controller(…); var myApp = angular.module(‘myApp’, [‘myControllers’]);
  • 24. Models Properties on the Controller’s $scope object Standard JavaScript values
  • 25. More To learn more: Tutorial: http://docs.angularjs.org/tutorial Documentation: http://docs.angularjs.org/guide/overview