ChapterOne Flashcards

1
Q

What is angularJS?

A

It is a superheroic JS MVC FRAMEWORK. You only need HTML and JS to do all the work.

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

What is the core concept behind angular js framework?

A

The MVC architectural pattern.

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

What is this MVC arhitectural pattern?

A

It divides app into three parts :
1. Model : driving force of the application. Data behind the application usually fetched from the server.
2. View : UI that the user sees and interacts with.
3. Controller : Presenter. It is responsible for deciding which parts of the model to display the view..
IT SPLITS RESPONSIBILITY.

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

BUT what is the real benefit?

A

since it splits the responsibility, each unit is responsible for one and only one thing.Easy to figure out codes and to figure out where the code belongs.
each unit is independent from the others. Makes the code modular and reuseable and also maintainable.

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

Name the five core beliefs that enables developers to rapidly create large, complex applications with ease

A
  1. Databinding
  2. Declarative
  3. MVC
  4. Dependency Injection
  5. Exensible?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are modules

A

packages.

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

What are the two parts of modularjs?

A
part one- they can define its own controllers, services, factories and directives.
So functions and codes can be accessed throughout the module.
Part two: the module can depend upon other modules as dependencies.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define a module name notes app.

A
angular.module('notesapp', {});
[] - array on module names that this module depends on.
if empty = no dependecny.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How would you load preexisting notesapp?

A

angular.module(‘notesapp’);

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

What’s the use of ng-bind vs double curlies?

A

ng-bind - no curlies for a brief second

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