feat(challenge13): create challenge 13 about styling

This commit is contained in:
thomas
2023-01-03 16:59:47 +01:00
parent fd1963d2f1
commit b6e6886a46
16 changed files with 280 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
/* 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';
}