SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Dariusz Kalbarczyk 
Experienced programmer, currently working in IT. 
Develops Angular based projects for large enterprises in Poland . 
Editor in chief of PIMM (www.issuu.com/independent-music-magazine) 
Arkadiusz Kalbarczyk 
Young student with a fresh view on IT, 
studying computer engineering at the 
Polish Japanese Institute of Information Technology. 
Engaged in projects regarding AngularJS technology.
 What is AngularJS? 
 Where to start? 
 The first application 
 $scope = bridge; 
 Directives 
 Communication with server 
 Most Popular Mobile Web APP Frameworks 
 IONIC 
 Mobile Angular UI 
 Why would you bother learning AngularJS afterall
 Open source JavaScript based library 
 Brief history 
 Greatest advantages 
 Society
 https://angularjs.org/ 
 https://www.youtube.com/user/angularjs 
 http://ng-poland.pl/
Index.html 
<html ng-app="app"> 
<head> 
<title>First AngularJS app</title> 
</head> 
<body ng-controller="firstCtrl"> 
<div>{{name}} {{1-0}}.{{1+2}}.{{3-3}}</div> 
<div><input data-ng-model= "name" /></div> 
<script src="angular.js"></script> 
<script src="first-ctrl.js"></script> 
</body> 
</html> 
first-ctrl.js 
var app = angular.module('app', []); 
app.controller('firstCtrl', function ($scope) { 
$scope.name = "AngularJS"; 
});
 Why do we really need $scope? 
 Importance of Inheritance 
 $scope in slightly greater detail
function FurnitureStore($scope) { 
$scope.offers = [ 
{name: ‘chair’, price: 149.99}, 
{name: ‘table’, price: 189.99 }, 
{name: ‘drawer’ price: 205.99}, 
]; 
};
 What the fudge is a directive ? 
 Are the any important? 
 Methods of implementation 
 Priorities 
 Build-in directives
<new-directive></ new-directive > 
<span new-directive ="expression"></span> 
<!-- directive: new-directive expression --> 
<span class=" new-directive : expression;"></span>
<!doctype html> 
<html ng-app="app"> 
<body> 
<div ng-controller="ExampleController"> 
{{test}} 
</div> 
<script type="text/javascript" 
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.20/angular.js"></script> 
<script> 
var app = angular.module('app', []); 
app.controller('ExampleController', function ($scope) { 
$scope.test = '123'; 
}); 
</script> 
</body> 
</html>
<!doctype html> 
<html> 
<body> 
<div ng-controller="ExampleController"> 
{{test}} 
</div> 
<script type="text/javascript" 
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.20/angular.js"></script> 
<script> 
var app = angular.module('app', []); 
app.controller('ExampleController', function ($scope) { 
$scope.test = '123'; 
}); 
angular.bootstrap(document, ['app']); 
</script> 
</body> 
</html>
Module (<html ng-app=”moduleName”>) 
Config Filter Directive Factory Controller 
Routes 
Service 
Provider 
Value
 a 
 form 
 input 
 input[checkbox] 
 input[dateTimeLocal] 
 input[date] 
 input[email] 
 input[month] 
 input[number] 
 input[radio] 
 input[text] 
 input[time] 
 input[url] 
 input[week] 
 ngApp 
 ngBind 
 ngBindHtml 
 ngBindTemplate 
 ngBlur 
 ngChange 
 ngChecked 
 ngClass 
 ngClassEven 
 ngClassOdd 
 ngClick 
 ngCloak 
 ngController 
 ngCopy 
 ngCsp 
 ngCut 
 ngDblclick 
 ngDisabled 
 ngFocus 
 ngForm 
 ngHide 
 ngHref 
 ngIf 
 ngInclude 
 ngInit 
 ngKeydown 
 ngKeypress 
 ngKeyup 
 ngList 
 ngModel 
 ngModelOptions 
 ngMousedown 
 ngMouseenter 
 ngMouseleave 
 ngMousemove 
 ngMouseover 
 ngMouseup 
 ngNonBindable 
 ngOpen 
 ngPaste 
 ngPluralize 
 ngReadonly 
 ngRepeat 
 ngSelected 
 ngShow 
 ngSrc 
 ngSrcset 
 ngStyle 
 ngSubmit 
 ngSwitch 
 ngTransclude 
 ngValue 
 script 
 select 
 textarea
<div data-ng-controller="mainCtrl"> 
<!-- main --> 
<div data-ng-controller="childOneCtrl"><!-- one --></div> 
<div data-ng-controller="childTwoCtrl"> 
<!-- two --> 
<div data-ng-controller="nextCtrl"><!-- next --></div> 
</div> 
</div> 
The ngController directive attaches a controller class to the view. This is a key 
aspect of how angular supports principles behind the Model-View-Controller 
design pattern.
<input type="text" ng-model="yourName" > 
<h1>Hello {{yourName}}!</h1> 
The ngModel directive binds an input,select, textarea (or custom form 
control) to a property on the scope.
<input type="text" data-ng-model="search" style="width: 80px" /> 
<ul> 
<li data-ng-repeat="mountain in mountainsList | filter : search"> 
{{mountain}} 
</li> 
</ul> 
The ngRepeat directive creates an instance of a template once per item from a 
collection. Each template instance gets its own scope.
 $http 
 No callback hell thanks to promises
var http = new XMLHttpRequest(); 
var params = „name=Jan&surname=Kowalski’; 
http.open(„GET”, ‘data.json’, true); 
http.onreadystatechange = function() { 
if(http.readystate == 4 && http.status == 200) { 
var response = http.responseText; 
} 
else if (http.status = 400) { 
//error handling 
} 
} 
http.send(params);
 POST $http.post(url, data, config) 
 PUT $http.put(url, data, config) 
 DELETE $http.delete(url, config) 
 HEAD $http.head(url, config) 
 JSONP $http.jsonp(url)
 Sencha Touch 
 jQuery Mobile + Backbone 
 Kendo UI 
 Angular JS + Ionic 
 React
Mobile Angular UI is a mobile UI framework 
just like Sencha Touch or jQuery Mobile. If 
you know Angular JS and Twitter Bootstrap 
you already know it! [ http://mobileangularui.com/ ] 
Angular JS Everywhere 
No jQuery dependencies, no fat bootstrap 
js. Just a few angular.js directives super 
easy to learn to put things together.
Build HTML5 Mobile Apps with Bootstrap and Angular JS
 Easy to learn 
 Supports MV* 
 Rapidly growing community 
 Google’s child
d.kalbarczyk@orange.pl, akalbarczyk@hotmail.com 
ng-poland.pl 
www.facebook.com/AngularJS.A.New.Hope

Weitere ähnliche Inhalte

Was ist angesagt?

Practical AngularJS
Practical AngularJSPractical AngularJS
Practical AngularJS
Wei Ru
 

Was ist angesagt? (20)

Angular js PPT
Angular js PPTAngular js PPT
Angular js PPT
 
Ajax on drupal the right way - DrupalCamp Campinas, São Paulo, Brazil 2016
Ajax on drupal the right way - DrupalCamp Campinas, São Paulo, Brazil 2016Ajax on drupal the right way - DrupalCamp Campinas, São Paulo, Brazil 2016
Ajax on drupal the right way - DrupalCamp Campinas, São Paulo, Brazil 2016
 
AngularJS Best Practices
AngularJS Best PracticesAngularJS Best Practices
AngularJS Best Practices
 
Understanding angular js
Understanding angular jsUnderstanding angular js
Understanding angular js
 
Building an End-to-End AngularJS Application
Building an End-to-End AngularJS ApplicationBuilding an End-to-End AngularJS Application
Building an End-to-End AngularJS Application
 
Angular js
Angular jsAngular js
Angular js
 
Mini-Training: AngularJS
Mini-Training: AngularJSMini-Training: AngularJS
Mini-Training: AngularJS
 
Dynamic Application Development by NodeJS ,AngularJS with OrientDB
Dynamic Application Development by NodeJS ,AngularJS with OrientDBDynamic Application Development by NodeJS ,AngularJS with OrientDB
Dynamic Application Development by NodeJS ,AngularJS with OrientDB
 
Practical AngularJS
Practical AngularJSPractical AngularJS
Practical AngularJS
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
AngularJS Basic Training
AngularJS Basic TrainingAngularJS Basic Training
AngularJS Basic Training
 
jQuery and AJAX with Rails
jQuery and AJAX with RailsjQuery and AJAX with Rails
jQuery and AJAX with Rails
 
Angular JS - Introduction
Angular JS - IntroductionAngular JS - Introduction
Angular JS - Introduction
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
 
jQuery and Rails: Best Friends Forever
jQuery and Rails: Best Friends ForeverjQuery and Rails: Best Friends Forever
jQuery and Rails: Best Friends Forever
 
AngularJS: an introduction
AngularJS: an introductionAngularJS: an introduction
AngularJS: an introduction
 
Angular js
Angular jsAngular js
Angular js
 
Angular js
Angular jsAngular js
Angular js
 
Getting Started with Angular JS
Getting Started with Angular JSGetting Started with Angular JS
Getting Started with Angular JS
 
Course CodeSchool - Shaping up with Angular.js
Course CodeSchool - Shaping up with Angular.jsCourse CodeSchool - Shaping up with Angular.js
Course CodeSchool - Shaping up with Angular.js
 

Andere mochten auch (8)

E-pasta datubāzes ievākšana (Mailigen Workshop 2012)
E-pasta datubāzes ievākšana (Mailigen Workshop 2012)E-pasta datubāzes ievākšana (Mailigen Workshop 2012)
E-pasta datubāzes ievākšana (Mailigen Workshop 2012)
 
E-pasta kampaņu datu analīzes pamati (Mailigen Workshop 2012)
E-pasta kampaņu datu analīzes pamati (Mailigen Workshop 2012)E-pasta kampaņu datu analīzes pamati (Mailigen Workshop 2012)
E-pasta kampaņu datu analīzes pamati (Mailigen Workshop 2012)
 
E-pasta kampaņu dizainu piemēri (Mailigen Workshop 2012)
E-pasta kampaņu dizainu piemēri (Mailigen Workshop 2012) E-pasta kampaņu dizainu piemēri (Mailigen Workshop 2012)
E-pasta kampaņu dizainu piemēri (Mailigen Workshop 2012)
 
E-pastu piegāde (Mailigen Workshop 2012)
E-pastu piegāde (Mailigen Workshop 2012) E-pastu piegāde (Mailigen Workshop 2012)
E-pastu piegāde (Mailigen Workshop 2012)
 
Mailigen API un integrācijas iespējas (Mailigen Workshop 2012)
Mailigen API un integrācijas iespējas (Mailigen Workshop 2012) Mailigen API un integrācijas iespējas (Mailigen Workshop 2012)
Mailigen API un integrācijas iespējas (Mailigen Workshop 2012)
 
Segmentēšana (Mailigen Workshop 2012)
Segmentēšana (Mailigen Workshop 2012) Segmentēšana (Mailigen Workshop 2012)
Segmentēšana (Mailigen Workshop 2012)
 
Kennicott higher education evening 13 june 2012
Kennicott higher education evening 13 june 2012Kennicott higher education evening 13 june 2012
Kennicott higher education evening 13 june 2012
 
Mailigen apskats
Mailigen apskatsMailigen apskats
Mailigen apskats
 

Ähnlich wie AngularJS Mobile Warsaw 20-10-2014

09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
Igor Bronovskyy
 

Ähnlich wie AngularJS Mobile Warsaw 20-10-2014 (20)

AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
AngularJs Superheroic JavaScript MVW Framework Services by Miracle StudiosAngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
 
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
 
Angular JS deep dive
Angular JS deep diveAngular JS deep dive
Angular JS deep dive
 
Basics of AngularJS
Basics of AngularJSBasics of AngularJS
Basics of AngularJS
 
AngularJs
AngularJsAngularJs
AngularJs
 
Sharing Data between controllers in different ways.
Sharing Data between controllers in different ways.Sharing Data between controllers in different ways.
Sharing Data between controllers in different ways.
 
Different way to share data between controllers in angular js
Different way to share data between controllers in angular jsDifferent way to share data between controllers in angular js
Different way to share data between controllers in angular js
 
intro to Angular js
intro to Angular jsintro to Angular js
intro to Angular js
 
Angular Js Basics
Angular Js BasicsAngular Js Basics
Angular Js Basics
 
Dive into AngularJS and directives
Dive into AngularJS and directivesDive into AngularJS and directives
Dive into AngularJS and directives
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
Angular js
Angular jsAngular js
Angular js
 
243329387 angular-docs
243329387 angular-docs243329387 angular-docs
243329387 angular-docs
 
Controller in AngularJS
Controller in AngularJSController in AngularJS
Controller in AngularJS
 
Custom directive and scopes
Custom directive and scopesCustom directive and scopes
Custom directive and scopes
 
AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014
 
API Technical Writing
API Technical WritingAPI Technical Writing
API Technical Writing
 
Angular js - 4developers 12 kwietnia 2013
Angular js - 4developers 12 kwietnia 2013Angular js - 4developers 12 kwietnia 2013
Angular js - 4developers 12 kwietnia 2013
 
The Basics Angular JS
The Basics Angular JS The Basics Angular JS
The Basics Angular JS
 
Workshop 12: AngularJS Parte I
Workshop 12: AngularJS Parte IWorkshop 12: AngularJS Parte I
Workshop 12: AngularJS Parte I
 

Kürzlich hochgeladen

+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
 
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
anilsa9823
 
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
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Kürzlich hochgeladen (20)

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
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
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...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
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-...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
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...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
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...
 
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
 
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
 
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...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
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
 
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 ☂️
 
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
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 

AngularJS Mobile Warsaw 20-10-2014

  • 1.
  • 2. Dariusz Kalbarczyk Experienced programmer, currently working in IT. Develops Angular based projects for large enterprises in Poland . Editor in chief of PIMM (www.issuu.com/independent-music-magazine) Arkadiusz Kalbarczyk Young student with a fresh view on IT, studying computer engineering at the Polish Japanese Institute of Information Technology. Engaged in projects regarding AngularJS technology.
  • 3.  What is AngularJS?  Where to start?  The first application  $scope = bridge;  Directives  Communication with server  Most Popular Mobile Web APP Frameworks  IONIC  Mobile Angular UI  Why would you bother learning AngularJS afterall
  • 4.  Open source JavaScript based library  Brief history  Greatest advantages  Society
  • 5.  https://angularjs.org/  https://www.youtube.com/user/angularjs  http://ng-poland.pl/
  • 6. Index.html <html ng-app="app"> <head> <title>First AngularJS app</title> </head> <body ng-controller="firstCtrl"> <div>{{name}} {{1-0}}.{{1+2}}.{{3-3}}</div> <div><input data-ng-model= "name" /></div> <script src="angular.js"></script> <script src="first-ctrl.js"></script> </body> </html> first-ctrl.js var app = angular.module('app', []); app.controller('firstCtrl', function ($scope) { $scope.name = "AngularJS"; });
  • 7.  Why do we really need $scope?  Importance of Inheritance  $scope in slightly greater detail
  • 8. function FurnitureStore($scope) { $scope.offers = [ {name: ‘chair’, price: 149.99}, {name: ‘table’, price: 189.99 }, {name: ‘drawer’ price: 205.99}, ]; };
  • 9.  What the fudge is a directive ?  Are the any important?  Methods of implementation  Priorities  Build-in directives
  • 10. <new-directive></ new-directive > <span new-directive ="expression"></span> <!-- directive: new-directive expression --> <span class=" new-directive : expression;"></span>
  • 11. <!doctype html> <html ng-app="app"> <body> <div ng-controller="ExampleController"> {{test}} </div> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.20/angular.js"></script> <script> var app = angular.module('app', []); app.controller('ExampleController', function ($scope) { $scope.test = '123'; }); </script> </body> </html>
  • 12. <!doctype html> <html> <body> <div ng-controller="ExampleController"> {{test}} </div> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.20/angular.js"></script> <script> var app = angular.module('app', []); app.controller('ExampleController', function ($scope) { $scope.test = '123'; }); angular.bootstrap(document, ['app']); </script> </body> </html>
  • 13. Module (<html ng-app=”moduleName”>) Config Filter Directive Factory Controller Routes Service Provider Value
  • 14.  a  form  input  input[checkbox]  input[dateTimeLocal]  input[date]  input[email]  input[month]  input[number]  input[radio]  input[text]  input[time]  input[url]  input[week]  ngApp  ngBind  ngBindHtml  ngBindTemplate  ngBlur  ngChange  ngChecked  ngClass  ngClassEven  ngClassOdd  ngClick  ngCloak  ngController  ngCopy  ngCsp  ngCut  ngDblclick  ngDisabled  ngFocus  ngForm  ngHide  ngHref  ngIf  ngInclude  ngInit  ngKeydown  ngKeypress  ngKeyup  ngList  ngModel  ngModelOptions  ngMousedown  ngMouseenter  ngMouseleave  ngMousemove  ngMouseover  ngMouseup  ngNonBindable  ngOpen  ngPaste  ngPluralize  ngReadonly  ngRepeat  ngSelected  ngShow  ngSrc  ngSrcset  ngStyle  ngSubmit  ngSwitch  ngTransclude  ngValue  script  select  textarea
  • 15. <div data-ng-controller="mainCtrl"> <!-- main --> <div data-ng-controller="childOneCtrl"><!-- one --></div> <div data-ng-controller="childTwoCtrl"> <!-- two --> <div data-ng-controller="nextCtrl"><!-- next --></div> </div> </div> The ngController directive attaches a controller class to the view. This is a key aspect of how angular supports principles behind the Model-View-Controller design pattern.
  • 16. <input type="text" ng-model="yourName" > <h1>Hello {{yourName}}!</h1> The ngModel directive binds an input,select, textarea (or custom form control) to a property on the scope.
  • 17. <input type="text" data-ng-model="search" style="width: 80px" /> <ul> <li data-ng-repeat="mountain in mountainsList | filter : search"> {{mountain}} </li> </ul> The ngRepeat directive creates an instance of a template once per item from a collection. Each template instance gets its own scope.
  • 18.  $http  No callback hell thanks to promises
  • 19. var http = new XMLHttpRequest(); var params = „name=Jan&surname=Kowalski’; http.open(„GET”, ‘data.json’, true); http.onreadystatechange = function() { if(http.readystate == 4 && http.status == 200) { var response = http.responseText; } else if (http.status = 400) { //error handling } } http.send(params);
  • 20.
  • 21.  POST $http.post(url, data, config)  PUT $http.put(url, data, config)  DELETE $http.delete(url, config)  HEAD $http.head(url, config)  JSONP $http.jsonp(url)
  • 22.  Sencha Touch  jQuery Mobile + Backbone  Kendo UI  Angular JS + Ionic  React
  • 23.
  • 24.
  • 25. Mobile Angular UI is a mobile UI framework just like Sencha Touch or jQuery Mobile. If you know Angular JS and Twitter Bootstrap you already know it! [ http://mobileangularui.com/ ] Angular JS Everywhere No jQuery dependencies, no fat bootstrap js. Just a few angular.js directives super easy to learn to put things together.
  • 26.
  • 27. Build HTML5 Mobile Apps with Bootstrap and Angular JS
  • 28.  Easy to learn  Supports MV*  Rapidly growing community  Google’s child
  • 29. d.kalbarczyk@orange.pl, akalbarczyk@hotmail.com ng-poland.pl www.facebook.com/AngularJS.A.New.Hope