我可以使用this.variable访问组件的任何部分中的变量,但subscribe()或catch()等RxJS函数中的变量除外。在下面的示例中,我希望在运行进程后打印一条消息: selector: '/app.component.css']export class AppComponent {
me
我有一个如下声明的组件,它接收一个输入数据。我使用的是Primeng日历组件,这个组件是它创建的,但我无法访问数据以将其传递给模板我收到一个错误(ngModel)="data.DateValue",就像访问它时DataValue还不存在一样export class ExempleComponent {
父组件data]="the