mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
863c7eaafe
Migrate the vscode extension for angular into this repository. PR Close #63924
18 lines
283 B
TypeScript
18 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;
|
|
}
|
|
}
|