Chapter 1: Introducing AngularJS Flashcards

1
Q

What does MVC stand for?

A

Model View Controller

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

What does MVVM stand for?

A

Model View View Model

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

What do we mean by model?

A

Driving force of the application. All the data and how its structured.

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

What do we mean by View?

A

This is the user interface

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

What do we mean by controller?

A

Decision making frameowrk for the application. What to show, what to do. Also handles the presentation of content.

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

Advantage of MVC approach

A

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)

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

What do we mean by SPA?

A

Single Page Application

Also known as an AJAX application

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

What do we mean by CRUD?

A

Create Retrieve Update Delete

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

What’s data-bidnding?

A

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)

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

What does ng-model mean?

A

It’s an attribute. Probably Angular model.

Used communicating with the server.

These are also called directives.

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

What’s the imperative paradigm?

A

We need to to tell the application exactly how to do everything

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

What’s the paradigm Angular.JS favours?

A

The declarative paradigm. In our mark up it iodinates what each part plays and leaves framework to handle it.

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

What do we mean by separation of concerns?

A

Different components do different things and you change it their not elsewhere

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

What’s dependency injection?

A

Asking for the dependencies of a particular controller or service

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

What are the backend requirements for Angular.js?

A

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)

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

What do we need to include in our file to use Angular.js?

A

We need to point to the angular.js file

On the html tag we add the ng-app directive. Where we strap it to (element we put it on) and its contents will be part of application. Anything outside won’t be.

17
Q

What do {{}} mean?

A

Either one-way data binding or an Angular.js expression

18
Q

What does the ng-model directive do?

A

It’s strapped onto an element to indicate data to use in the app.

19
Q

What does ng-bind directive do?

A

Interchangeable with the {{}}.

It can stand in for a variable. Indicate what data to add to the page.
e.g.<p></p> or {{name}} would work

20
Q

What’s a directive?

A

These extend the vocabulary of HTML.

We can declare new tag types to suit the application.