Chap 5 - Angular Service Flashcards

0
Q

$window

A

Permet d’englober l’objet window

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Services

A
Business logic
Drives the application
Reusable
Validation logic
Application Level store
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

$location

A

Permet de manipuler l’URL dans la barre d’adresse.

absUrl url path search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

$http

A

Permet de faire des requêtes XHR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Quand créer un service angular

A

Reusabilite
État persistant au niveau de l’application
Aucune relation avec une vue
Intégration avec un service tiers : socketio breezejs
Cache ou factories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly