Exam 2: AngularJS: Functions, Directives, and Events

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

AngularJS can show or hide HTML depending on the state of data in the model. You do so using a set of AngularJS directives such as . . . . . . which are created specifically for that purpose.

Free
(Multiple Choice)
4.7/5
(31)
Correct Answer:
Verified

B

AngularJS needs data in JSON format to populate its model.

Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
Verified

A

AngularJS applications are a mix of . . . . . .

Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
Verified

D

EventEmitter class's simple interface, which basically encompass two methods . . . . . . . . . can therefore be used to trigger custom events and listen to events as well, both synchronously or asynchronously.

(Multiple Choice)
4.9/5
(29)

There is a controller which takes single parameter. We call it . . . . . parameter.

(Multiple Choice)
4.7/5
(38)

@Output() myEvent = new EventEmitter();

(Multiple Choice)
5.0/5
(34)

If the data obtained from the model contains HTML elements, these are escaped before being inserted into the HTML template. The escaping means that the HTML is displayed as text, and not as HTML. This is done to prevent . . . .

(Multiple Choice)
4.9/5
(26)

First the HTML document is loaded into the browser, and evaluated by the browser. At this time the AngularJS . . . . . . .

(Multiple Choice)
4.9/5
(36)

. . . . . . . . need to be passed as a parameter in the event callback from the template to capture the event object.

(Multiple Choice)
5.0/5
(40)

AngularJS 1.0 was released in 2013.

(Multiple Choice)
4.8/5
(37)

Calling . . . . . . . . on the event prevents propagation.

(Multiple Choice)
5.0/5
(35)

Angular framework provides event binding using in-built event as well as custom event. Custom events are the EventEmitter instances. To create a custom event we need to create an instance of EventEmitter annotated by . . . . . . .

(Multiple Choice)
4.8/5
(36)

Event binding can be defined . . . . . . . . .

(Multiple Choice)
4.8/5
(35)

EventEmitter class is used by directives and components to emit custom Events.

(Multiple Choice)
4.7/5
(34)

The . . . . . . directive is one of the most fundamental directives in AngujarJS. The . . . . . directive inserts the result of an expression into the HTML template.

(Multiple Choice)
5.0/5
(37)

EventEmitter class acts both as an observer and observable.

(Multiple Choice)
4.9/5
(34)

Scope act as glue between controller and view.

(Multiple Choice)
4.8/5
(35)

We need to tell AngularJS what part of our HTML page contains the AngularJS app. You do so by adding the . . . . attribute to the root HTML element of the AngularJS app.

(Multiple Choice)
4.9/5
(33)

Events in Angular 2 behave like normal DOM events. They can bubble up but cannot propagate down.

(Multiple Choice)
5.0/5
(33)

Events on child elements are propagated upwards, and hence event binding is also possible on a parent element.

(Multiple Choice)
4.9/5
(38)
Showing 1 - 20 of 24
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)