Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Consumiendo una API REST con AngularJS
Search
César Suárez Ortega
February 11, 2016
Programming
410
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Consumiendo una API REST con AngularJS
César Suárez Ortega
February 11, 2016
Transcript
17 slides
CONSUMIENDO UNA API REST CON ANGULARJS César Suárez Ortega <
[email protected]
>
II Jornadas Técnicas UEx – CIEMAT: Introducción a NoSQL con MongoDB 9 – 11 de Febrero, 2016
Índice Conceptos básicos Patrón MVC Inyección de dependencias Promesas AngularJS
Práctica: Nuestra tienda online
PATRONES DE DISEÑO
Patrón MVC
Patrón MVC API
“Dependency Injection” is a 25-dollar term for a 5-cent concept.
James Shore http://www.jamesshore.com/Blog/Dependency-Injection-Demystified.html
Inyección de dependencias public class Example { private DatabaseThingie myDatabase;
//SIN inyección de dependencias public Example() { myDatabase = new DatabaseThingie(); } //CON inyección de dependencias public Example(DatabaseThingie useThisDatabaseInstead) { myDatabase = useThisDatabaseInstead; } public void doStuff() { myDatabase.GetData(); } }
Promesas var result = sloooooowSyncMethod(); console.log(result); var promise = promiseAsyncMethod();
promise.then(function(result) { console.log(result); });
None
None
None
Sobre AngularJS Framework JavaScript Extiende HTML Muchas facilidades para organizar
nuestro front-end. Aproximación declarativa. <button ng-click="addLol()">Touch me</button> DEPRECATED
PRÁCTICA #2
$ curl –sL https://deb.nodesource.com/setup | sudo bash - $ sudo
apt-get install nodejs build-essential ruby ruby-dev $ git clone https://github.com/csuarez/juc-mongodb-web.git $ cd juc-mongodb-web $ sudo npm –g install grunt-cli $ sudo npm –g install bower $ sudo gem install compass $ npm install $ bower install --allow-root $ grunt serve Arrancando la web https://github.com/csuarez/juc-mongodb-web
AngularJS facts Framework JavaScript MVC Flexible Muchas facilidades para
AngularJS facts
[email protected]
More Decks by César Suárez Ortega
See All by César Suárez Ortega
Symfony y concurrencia: el componente Lock
csuarez
0
1.2k
PHP Episodio VII: El Despertar de la Fuerza
csuarez
1
310
Construyendo una API REST con Python y MongoDB
csuarez
0
360
Automatización de tareas con Ansible
csuarez
1
400
Procesanso datos con Hadoop: MapReduce y YARN
csuarez
0
390
Introducción a SCRUM
csuarez
0
380
Introducción a GIT
csuarez
1
280
Using CAD Systems and E-Learning in radiologist training
csuarez
0
160
CETA-CIEMAT: Salud + Investigación
csuarez
0
160
Other Decks in Programming
See All in Programming
SODA - FACT BOOK(EN)
sodainc
1
270
Ruby から Emacs を操作したい
phigasui
0
370
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
180
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
190
祈るテストから、探索するテストへ 〜Lincheckではじめる並行処理テスト〜
yyh_gl
0
420
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
200
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.7k
Crash Auto Pipelines
veronikapj
1
440
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
180
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
360
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
Featured
See All Featured
sira's awesome portfolio website redesign presentation
elsirapls
0
520
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
For a Future-Friendly Web
brad_frost
184
11k
Being A Developer After 40
akosma
PRO
92
590k
So, you think you're a good person
axbom
PRO
2
2.3k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
The Limits of Empathy - UXLibs8
cassininazir
2
800
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Bash Introduction
62gerente
615
220k