mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
17 lines
283 B
TypeScript
17 lines
283 B
TypeScript
import {Component, signal} from '@angular/core';
|
|
|
|
@Component({
|
|
templateUrl: 'foo.component.html',
|
|
standalone: false,
|
|
})
|
|
export class FooComponent {
|
|
title = 'Foo Component';
|
|
sig = signal(1);
|
|
x = {
|
|
sig: signal(1),
|
|
};
|
|
/** returns 1 */
|
|
method() {
|
|
return 1;
|
|
}
|
|
}
|