Angular Flashcards
npm uses the package.json to manage what dependencies our application has.
true
By default, event handlers are set to the bubbling phase.
true
This function of the XMLHttpRequest object sends the request to the server?
send
This object is used to make Ajax calls.
XMLHttpRequest
Which will submit a form using JavaScript?
document.getElementById(‘myform’).submit( )
What is === operator?
Compares value equality as well as data type
How can you add new DIV elements dynamically?
document.createElement(‘div’)
Which is not a JavaScript data type?
Undeclared
What is the correct JavaScript syntax to change the content of the HTML element?
document.getElementById(“demo”).innerHTML = “Hello World!”;
The HTML DOM is an object based interface that allows JavaScript and other entities manipulate and create HTML elements dynamically.
true
You are allowed to have more than one script tag on the page for multiple JavaScript references.
true
Which method is best to use if you want to grab all paragraphs on the page?
getElementsByTagName()
The number -1000, is considered truthy
TRUE
Angular 2 supports TypeScript.
TypeScript is one of the main drivers behind Angular 2 because of the support for constructs such as Decorators.
True or False. The AppComponent is typically the name for an Angular 2 application’s root component.
The AppComponent is the Component defined in app-component.ts and serves as the main component of the application.
Which of the following files provides compilation information for an Angular2 application?
main.ts specifies how to compile the application and specifies the main module.
Which of the following files is typically used to link your application’s components?
app-module.ts defines the AppModule component. It is the root module and will link all other components of your application here
Data-binding is: (Choose the best option to complete this sentence)
the association of data/events with elements and user interactions
Directives are: (Choose the option that best completes this sentence)
elements, attributes and CSS style classes that you bind on your HTML templates
True or False. A Component is a specialized Directive.
true