首页 文章
  • 37 votes
     answers
     views

    从Angular 2中的子组件更新父组件属性

    我正在使用 @input 从父组件接收属性,以激活子组件元素之一中的CSS类 . 我从父接收的'm able to receive the property from parent and also activate the class. But this works only once. The property i' m是一个类型的布尔数据,当我从子组件将其状态设置为 false 时,它在父级...

热门问题