36 lines
860 B
TypeScript
36 lines
860 B
TypeScript
import {Component} from '@angular/core';
|
|
import {RouterOutlet} from '@angular/router';
|
|
import {CommonModule} from '@angular/common';
|
|
import {InputTextModule} from 'primeng/inputtext';
|
|
import {ButtonModule} from 'primeng/button';
|
|
import {MessageModule} from 'primeng/message';
|
|
import {FormsModule} from '@angular/forms';
|
|
import {BarComponent} from './component/bar/bar.component';
|
|
import {ItemsComponent} from './component/items/items.component';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
standalone: true,
|
|
imports: [
|
|
CommonModule,
|
|
RouterOutlet,
|
|
InputTextModule,
|
|
ButtonModule,
|
|
MessageModule,
|
|
FormsModule,
|
|
BarComponent,
|
|
ItemsComponent
|
|
],
|
|
templateUrl: './app.component.html',
|
|
styleUrl: './app.component.css'
|
|
})
|
|
export class AppComponent {
|
|
text = '';
|
|
|
|
msg = '';
|
|
|
|
onClick() {
|
|
this.msg = 'Welcome ' + this.text;
|
|
}
|
|
}
|