Angular组件间传值

在Angular中,父组件调用子组件,能够传递参数,子组件根据传递过来的参数返回相应的数据;spa 父组件向子组件传参,过程以下:component 方法一:input 在子组件中:string @Component({ selector: 'test-component', template: `{{inputValue}}`, inputs: ['inputsValue'] }) expor
相关文章
相关标签/搜索