摘要: ElementRef: In Angular2 Doc, it suggest to "avoid" using ElementRef. It access DOM directly, can easily be attacked. If we log out the ElementRef, we 阅读全文
posted @ 2017-06-23 13:57 枫叶布 阅读(761) 评论(0) 推荐(0)
摘要: 一、父模块向子模块传值 其中,my-child为子模块的selector标签,childdata为子模块声明的变量(用来保存父模块传递过来的值),parentdata为父模块声明的变量(保存着父模块的值) 子模块中引用父模块传过来的值: 二、子模块向父模块传递事件 子模块传出事件: 父html引用事 阅读全文
posted @ 2017-06-23 11:12 枫叶布 阅读(507) 评论(0) 推荐(0)