Chapter 1: Introducing AngularJS Flashcards
What does MVC stand for?
Model View Controller
What does MVVM stand for?
Model View View Model
What do we mean by model?
Driving force of the application. All the data and how its structured.
What do we mean by View?
This is the user interface
What do we mean by controller?
Decision making frameowrk for the application. What to show, what to do. Also handles the presentation of content.
Advantage of MVC approach
One unit takes care of one thing e.g. View looks after the user interface, Controller the business logic,
Each unit is idependent (makes code more modular, maintainable and reusable)
What do we mean by SPA?
Single Page Application
Also known as an AJAX application
What do we mean by CRUD?
Create Retrieve Update Delete
What’s data-bidnding?
Angular.js has 1 way and 2 way data binding
We tie data to our markup
e.g. Hello <span>{{name}}</span>
1 way (server to client)
2 way (client server)
What does ng-model mean?
It’s an attribute. Probably Angular model.
Used communicating with the server.
These are also called directives.
What’s the imperative paradigm?
We need to to tell the application exactly how to do everything
What’s the paradigm Angular.JS favours?
The declarative paradigm. In our mark up it iodinates what each part plays and leaves framework to handle it.
What do we mean by separation of concerns?
Different components do different things and you change it their not elsewhere
What’s dependency injection?
Asking for the dependencies of a particular controller or service
What are the backend requirements for Angular.js?
There’s no specific requirements (e.g. you don’t need Ruby, PHP, Java).
You do need a way to talk with the server (probably AJAX)