Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JUC2016 - Hands-on lab: Consumiendo una API Res...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
CETA-Ciemat
February 11, 2016
Technology
720
0
Share
JUC2016 - Hands-on lab: Consumiendo una API Rest con AngularJS
II Jornadas Técnicas UEx – CIEMAT. Hands-on lab: Consumiendo una API Rest con AngularJS
CETA-Ciemat
February 11, 2016
More Decks by CETA-Ciemat
See All by CETA-Ciemat
JUC2016 - Hands-on lab: Construyendo una API REST con Python y MongoDB
cetaciemat
0
710
JUC2016 - Mongo DBA
cetaciemat
0
570
JUC2016 - Mongo 101
cetaciemat
0
530
Jornadas Técnicas de RedIRIS 2015
cetaciemat
0
180
Repositorios digitales para la investigación: La experiencia de CETA-Ciemat
cetaciemat
0
210
Primeros pasos con Tableau
cetaciemat
0
570
Primeros pasos con Jupyter Notebook
cetaciemat
1
560
Introducción a Latex
cetaciemat
0
1.8k
JUC - Diseño e instalación de un clúster Hadoop
cetaciemat
0
370
Other Decks in Technology
See All in Technology
Data Hubグループ 紹介資料
sansan33
PRO
0
2.9k
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
320
Rebirth of Software Craftsmanship in the AI Era
lemiorhan
PRO
4
2k
JEDAI in Osaka 2026イントロ
taka_aki
0
320
扱える不確実性を増やしていく - スタートアップEMが考える「任せ方」
kadoppe
0
290
Choose your own adventure in agentic design patterns
glaforge
0
130
社内エンジニア勉強会の醍醐味と苦しみ/tamadev
nishiuma
0
170
[最強DB講義]推薦システム | 基礎編
recsyslab
PRO
1
170
AI와 협업하는 조직으로의 여정
arawn
0
230
2026年、知っておくべき最新 サーバレスTips10選/serverless-10-tips
slsops
13
5.2k
エージェントスキルを作って自分のインプットに役立てよう
tsubakimoto_s
0
250
え!?初参加で 300冊以上 も頒布!? これは大成功!そのはずなのに わいの財布は 赤字 の件
hellohazime
0
160
Featured
See All Featured
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
520
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
170
Building an army of robots
kneath
306
46k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
150
30 Presentation Tips
portentint
PRO
1
270
Practical Orchestrator
shlominoach
191
11k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.8k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
270
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Transcript
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]