Angular JS Flashcards

(14 cards)

1
Q

AngularJS

A

With a focus on code quality and testability,
AngularJS is a go-to choice for web
developers.
- * AngularJS is a structural framework for dynamic
web apps.
* It lets you use HTML as your template language
and lets you extend HTML’s syntax to express
your application’s components clearly and
succinctly.

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

use

A
  • AngularJS’s data binding and dependency
    injection eliminate much of the code you would
    otherwise have to write.
  • It all happens within the browser, making it an
    ideal partner with any server technology
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Key benefits of AngularJS for web development:

A

– MVC support
– Code reuse
– Data binding feature
– Quick application prototyping
– Enhanced server performance
– Real-time testing

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

ng-app

A
  • used the ng-app directive to inform our page that it should consider itself under the control
    of AngularJS.
  • used a script element to include the AngularJS library.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The MVC pattern is an ______________.

A

architectural pattern

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

MVC

A

Model View Controller

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

Three parts of the MVC:

A

-model
-view
-controller

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

the model

A

The model represents the underlying, logical structure of data in a software application.

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

the view

A

view is the body of code that represents the user interface (all of the things that the user can see
and to which the user can respond on the screen, such as buttons, dialog boxes, and so on).

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

the controller

A
  • The controller element refers to the software code that works with application logic to complete a
    task. Moreover, the controller is key to maintaining the communication between the model and
    view elements.
  • i.e., the controller acts as the intermediary between the view and the model.
  • the controller keeps the model and the view separated—one has no direct knowledge of the
    other.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

scope

A
  • Scope in AngularJS is the binding part
    between HTML (view) and JavaScript
    (controller) and it is a built-in object.
  • It contains application data and objects
  • It is available for both the view and the
    controller.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Filters

A
  • When working with data that has been retrieved
    from a database, we need to spend a lot of time
    working with raw unformatted data.
  • When presenting data to end users, however, we
    need a way to deal with such things.
  • Angular JS filters are often a very good way to deal
    with that.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

AngularJS filters

A

AngularJS filters format the value of an
expression for display to the end user.
– They don’t actually change the underlying data,
but they change how it is displayed in the
particular case in which the filter is applied.

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

Built-in Filters

A

The filters are kept inside the expressions
– Number Filter - number
– Date Filter - date
– limitTo Filter - limitTo

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