Week 9 QC Angular Quiz True or False Flashcards
Angular 2 supports TypeScript.
TRUE
Explanation : TypeScript is one of the main drivers behind Angular 2 because of the support for constructs such as Decorators.
A component is an important feature in Angular 2.
TRUE
Explanation : You’ll find that many constructs in Angular 2 are referred to as Components. There is a special decorator that you’ll have to use, @Component, even when creating a component.
The AppComponent is typically the name for an Angular 2 application’s root component.
TRUE
Explanation : The AppComponent is the Component defined in app-component.ts and serves as the main component of the application.
A Component is a specialized Directive.
TRUE
A template is a collection of data values you pass to a component.
FALSE
Modules are used to organize code in features or related functionality in order to prevent code bloat and promote code reuse.
TRUE
You typically define one root module and typically define additional features of your application as other modules tied into your root module.
TRUE
A Logging Service is a type of feature that may be injected into another class.
TRUE
The root module must be named AppModule.
FALSE
Bootstrapping is the process during which your Root Component is inserted into the DOM.
TRUE
Angular will match the selector property of the root component to an element in index.html during the bootstrapping process
TRUE
Two-way Data-binding is like property-binding and event-binding together.
TRUE
Property-binding and interpolation can be used to set an element’s property for string values.
TRUE
ngModel, ngClass, and ngStyle are examples of structural directives.
FALSE
Directives which alter the DOM like ngFor or ngIf are examples of attribute directives.
FALSE