摘要:
安装组件 ng g componet 组件名 阅读全文
posted @ 2017-08-10 17:13 work hard work smart 阅读(184) 评论(0) 推荐(0) 编辑
|
|||
摘要:
安装组件 ng g componet 组件名 阅读全文
posted @ 2017-08-10 17:13 work hard work smart 阅读(184) 评论(0) 推荐(0) 编辑
摘要:
1.导入 2. 代码 参考:https://stackoverflow.com/questions/35212341/angular2-http-post-request-parameters 阅读全文
posted @ 2017-08-10 17:08 work hard work smart 阅读(2171) 评论(0) 推荐(0) 编辑
摘要:
1. 创建工程 ng new demo3 2. 创建子组件 ng g component child 3. 在子组件中定义方法greeting 4. 父组件html(第三行是模板中调用子组件的方法) 5. 父组件Control调用子组件中的方法 阅读全文
posted @ 2017-08-10 17:03 work hard work smart 阅读(1501) 评论(0) 推荐(0) 编辑 |
|||