我是Angular 4的新手.根据我的理解,@ Input用于将值传递给组件.但是当我按照下面提到的那样使用它时它不起作用.
my-file.component.html <h1 [user] = "currentuser"></h1> my-file.component.ts @Input() user : string;