import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
{{ napis }}
`,
styleUrls: ['./app.component.css'],
standalone: true
})
export class AppComponent {
title = 'wizytowka';
napis = 'Nazywam się Adrian Gołębiewski';
kolorTlaNapisu = 'gray';
zdjecieUrl = 'https://m.wm.pl/2020/01/orig/0000005900-24831520-920893851400482-5986523915120031049-o-604944.jpg';
zmienKolorTlaNapisu() {
this.kolorTlaNapisu = '#' + Math.floor(Math.random()*16777215).toString(16);
}
}