WorksheetsAngular basics #02
Total questions: 10
Worksheet time: 5mins
Command used to create a component?
ng create component component_name
ng generate component
ng create component
ng generate component component_name
Angular is ________?
Java Framework
Javascript Framework
SQL Framework
HTML Framework
Interpolation binding refers to:
binding expressions into the marked up language
setting a property of view element.
setting an attribute property of a view element.
None of the given
Among the following choose the one which is responsible for the startup of the angular projects.
app.ts
main.ts
index.js
angular.cli.json
SPA stands for _________?
Sample Project application
Simple Program Application
Simple Page Application
Single Page Application
Which among the following is NOT a structural directive?
*ngIf
*ngFor
*ngWhile
*ngClass
If I write <button (click) = "onClick ()"> in a template, I use?
interpolation
property binding
event binding
none of the given
What does this syntax do?
routerLink="/home"
It navigates to the component with a name matching the assigned string
It links a route to a service by matching the assigned string to a service class name
It links a route with data by matching the assigned string to a property name
It navigates to the component with a path matching the assigned string
What are the types of directives
Component
Structural
Attribute
All of above
Which type of binding uses the banana box [()]
Property Binding
Interpolation Binding
Two-way binding
Directive Binding
