mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
17 lines
364 B
TypeScript
17 lines
364 B
TypeScript
/* eslint-disable @angular-eslint/component-selector */
|
|
import { Component, Input } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'text',
|
|
standalone: true,
|
|
template: `
|
|
<p style="font-size: {{ font }}px; color: {{ color }}">
|
|
<ng-content></ng-content>
|
|
</p>
|
|
`,
|
|
})
|
|
export class TextComponent {
|
|
@Input() font = 10;
|
|
@Input() color = 'black';
|
|
}
|