angularjsservices Flashcards

1
Q

What is angular js service?

A

They are functions or objects that can hold behaviour or state across our application.

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

How many times is angular js instantiated?

A

Only once.

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

Use of angular js controller

A
  • Which model and data fields to fetch and show in the HTML
  • User interaction, as in what needs to happen when a user clicks something
  • Presentationlogic, such as how a particular UI element should be styled,or whether it should be hidden
How well did you know this?
1
Not at all
2
3
4
5
Perfectly