angularjsservices Flashcards
1
Q
What is angular js service?
A
They are functions or objects that can hold behaviour or state across our application.
2
Q
How many times is angular js instantiated?
A
Only once.
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