SlideShare ist ein Scribd-Unternehmen logo
1 von 25
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
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

Weitere ähnliche Inhalte

Was ist angesagt?

Angular js presentation at Datacom
Angular js presentation at DatacomAngular js presentation at Datacom
Angular js presentation at DatacomDavid Xi Peng Yang
 
AngularJS intro
AngularJS introAngularJS intro
AngularJS introdizabl
 
Step by Step - AngularJS
Step by Step - AngularJSStep by Step - AngularJS
Step by Step - AngularJSInfragistics
 
AngularJS Beginners Workshop
AngularJS Beginners WorkshopAngularJS Beginners Workshop
AngularJS Beginners WorkshopSathish VJ
 
React.js - and how it changed our thinking about UI
React.js - and how it changed our thinking about UIReact.js - and how it changed our thinking about UI
React.js - and how it changed our thinking about UIMarcin Grzywaczewski
 
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...Sencha
 
Angular JS tutorial
Angular JS tutorialAngular JS tutorial
Angular JS tutorialcncwebworld
 
Angular 2 overview
Angular 2 overviewAngular 2 overview
Angular 2 overviewJesse Warden
 
AngularJS - Architecture decisions in a large project 
AngularJS - Architecture decisionsin a large project AngularJS - Architecture decisionsin a large project 
AngularJS - Architecture decisions in a large project Elad Hirsch
 
Drupal & AngularJS - DrupalCamp Spain 2014
Drupal & AngularJS - DrupalCamp Spain 2014Drupal & AngularJS - DrupalCamp Spain 2014
Drupal & AngularJS - DrupalCamp Spain 2014Juampy NR
 
Angular2 Development for Java developers
Angular2 Development for Java developersAngular2 Development for Java developers
Angular2 Development for Java developersYakov Fain
 
iOS viper presentation
iOS viper presentationiOS viper presentation
iOS viper presentationRajat Datta
 
Introduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectIntroduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectJadson Santos
 
Introduction to single page application with angular js
Introduction to single page application with angular jsIntroduction to single page application with angular js
Introduction to single page application with angular jsMindfire Solutions
 
Front end development with Angular JS
Front end development with Angular JSFront end development with Angular JS
Front end development with Angular JSBipin
 
React js Online Training
React js Online TrainingReact js Online Training
React js Online TrainingLearntek1
 

Was ist angesagt? (20)

Angular js presentation at Datacom
Angular js presentation at DatacomAngular js presentation at Datacom
Angular js presentation at Datacom
 
AngularJS intro
AngularJS introAngularJS intro
AngularJS intro
 
Angularjs Basics
Angularjs BasicsAngularjs Basics
Angularjs Basics
 
Step by Step - AngularJS
Step by Step - AngularJSStep by Step - AngularJS
Step by Step - AngularJS
 
AngularJS Beginners Workshop
AngularJS Beginners WorkshopAngularJS Beginners Workshop
AngularJS Beginners Workshop
 
React.js - and how it changed our thinking about UI
React.js - and how it changed our thinking about UIReact.js - and how it changed our thinking about UI
React.js - and how it changed our thinking about UI
 
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...
 
Angular JS tutorial
Angular JS tutorialAngular JS tutorial
Angular JS tutorial
 
Angular 2 overview
Angular 2 overviewAngular 2 overview
Angular 2 overview
 
AngularJS - Architecture decisions in a large project 
AngularJS - Architecture decisionsin a large project AngularJS - Architecture decisionsin a large project 
AngularJS - Architecture decisions in a large project 
 
Drupal & AngularJS - DrupalCamp Spain 2014
Drupal & AngularJS - DrupalCamp Spain 2014Drupal & AngularJS - DrupalCamp Spain 2014
Drupal & AngularJS - DrupalCamp Spain 2014
 
Angular2 Development for Java developers
Angular2 Development for Java developersAngular2 Development for Java developers
Angular2 Development for Java developers
 
AngularJS 2.0
AngularJS 2.0AngularJS 2.0
AngularJS 2.0
 
iOS viper presentation
iOS viper presentationiOS viper presentation
iOS viper presentation
 
Introduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectIntroduction to angular with a simple but complete project
Introduction to angular with a simple but complete project
 
AngularJS Basics
AngularJS BasicsAngularJS Basics
AngularJS Basics
 
Introduction to single page application with angular js
Introduction to single page application with angular jsIntroduction to single page application with angular js
Introduction to single page application with angular js
 
Mvc framework
Mvc frameworkMvc framework
Mvc framework
 
Front end development with Angular JS
Front end development with Angular JSFront end development with Angular JS
Front end development with Angular JS
 
React js Online Training
React js Online TrainingReact js Online Training
React js Online Training
 

Ähnlich wie Valentine with Angular js - Introduction

Angular JS - Introduction
Angular JS - IntroductionAngular JS - Introduction
Angular JS - IntroductionSagar Acharya
 
AngularJs (1.x) Presentation
AngularJs (1.x) PresentationAngularJs (1.x) Presentation
AngularJs (1.x) PresentationRaghubir Singh
 
Angular - Chapter 3 - Components
Angular - Chapter 3 - ComponentsAngular - Chapter 3 - Components
Angular - Chapter 3 - ComponentsWebStackAcademy
 
SoCal Code Camp 2011 - ASP.NET MVC 4
SoCal Code Camp 2011 - ASP.NET MVC 4SoCal Code Camp 2011 - ASP.NET MVC 4
SoCal Code Camp 2011 - ASP.NET MVC 4Jon Galloway
 
ASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a coupleASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a coupleAlexandre Marreiros
 
Angular patterns
Angular patternsAngular patterns
Angular patternsPremkumar M
 
Introduction to Azure Functions
Introduction to Azure FunctionsIntroduction to Azure Functions
Introduction to Azure FunctionsCallon Campbell
 
Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5Ganesh Kondal
 
Angularjs for kolkata drupal meetup
Angularjs for kolkata drupal meetupAngularjs for kolkata drupal meetup
Angularjs for kolkata drupal meetupGoutam Dey
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to AngularjsGaurav Agrawal
 
Introduction to Angularjs : kishan kumar
Introduction to Angularjs : kishan kumarIntroduction to Angularjs : kishan kumar
Introduction to Angularjs : kishan kumarAppfinz Technologies
 
ASP .Net Core SPA Templates
ASP .Net Core SPA TemplatesASP .Net Core SPA Templates
ASP .Net Core SPA TemplatesEamonn Boyle
 

Ähnlich wie Valentine with Angular js - Introduction (20)

Angular JS - Introduction
Angular JS - IntroductionAngular JS - Introduction
Angular JS - Introduction
 
AngularJs (1.x) Presentation
AngularJs (1.x) PresentationAngularJs (1.x) Presentation
AngularJs (1.x) Presentation
 
Angularjs
AngularjsAngularjs
Angularjs
 
Angular - Chapter 3 - Components
Angular - Chapter 3 - ComponentsAngular - Chapter 3 - Components
Angular - Chapter 3 - Components
 
SoCal Code Camp 2011 - ASP.NET MVC 4
SoCal Code Camp 2011 - ASP.NET MVC 4SoCal Code Camp 2011 - ASP.NET MVC 4
SoCal Code Camp 2011 - ASP.NET MVC 4
 
Mini-Training: AngularJS
Mini-Training: AngularJSMini-Training: AngularJS
Mini-Training: AngularJS
 
Introduction to Angular Js
Introduction to Angular JsIntroduction to Angular Js
Introduction to Angular Js
 
ASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a coupleASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a couple
 
Angular patterns
Angular patternsAngular patterns
Angular patterns
 
Introduction to Azure Functions
Introduction to Azure FunctionsIntroduction to Azure Functions
Introduction to Azure Functions
 
Anjular js
Anjular jsAnjular js
Anjular js
 
Angular 9
Angular 9 Angular 9
Angular 9
 
Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5
 
Angularjs for kolkata drupal meetup
Angularjs for kolkata drupal meetupAngularjs for kolkata drupal meetup
Angularjs for kolkata drupal meetup
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to Angularjs
 
Angular IO
Angular IOAngular IO
Angular IO
 
Introduction to Angularjs : kishan kumar
Introduction to Angularjs : kishan kumarIntroduction to Angularjs : kishan kumar
Introduction to Angularjs : kishan kumar
 
Introduction to Angularjs
Introduction to AngularjsIntroduction to Angularjs
Introduction to Angularjs
 
ASP .Net Core SPA Templates
ASP .Net Core SPA TemplatesASP .Net Core SPA Templates
ASP .Net Core SPA Templates
 
Angular js for Beginnners
Angular js for BeginnnersAngular js for Beginnners
Angular js for Beginnners
 

Mehr von Senthil Kumar

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

Mehr von Senthil Kumar (7)

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

Kürzlich hochgeladen

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 

Kürzlich hochgeladen (20)

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 

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
  • 3.
  • 4.
  • 5.
  • 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