- Basic Material Design - Default Component to see anything - theme switching between light and dark - language change between german and english
19 lines
616 B
TypeScript
19 lines
616 B
TypeScript
import { Component, signal } from '@angular/core';
|
|
import { MatCardModule } from '@angular/material/card';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
import {TranslatePipe} from '@ngx-translate/core';
|
|
|
|
@Component({
|
|
selector: 'app-welcome',
|
|
standalone: true,
|
|
imports: [MatCardModule, MatButtonModule, MatIconModule, TranslatePipe],
|
|
templateUrl: './welcome.html',
|
|
styleUrl: './welcome.scss',
|
|
})
|
|
export class WelcomeComponent {
|
|
readonly count = signal(0);
|
|
inc() { this.count.update(v => v + 1); }
|
|
reset() { this.count.set(0); }
|
|
}
|