Welcome
Angular
Components
Public
New
Angular
Angular is a widely used, complete, JavaScript-based open-source, front-end web application framework. As it is the front end of the MEAN stack it's important for front end engineers to have experience with or knowledge of Angular.
Components
Components are used in many frameworks and languages as the building blocks of an application.
Public
Public questions (free account) are common interview questions. They are great for practicing, or if you want to filter candidates using the classic problems.
New
This is a part of latest question addition to our question library.
Consider the following component:
import { Component, Input } from '@angular/core';
@Component({
selector: 'welcome',
template: `<h1>Welcome to {{name}}!</h1>`,
styles: [`h1 { font-family: Lato; }`]
})
export class WelcomeComponent {
@Input() name: string;
}
Select all of the statements about its use (in another components template) that are correct.
(multiple correct answers possible)