摘要:
1:新建项目后,新增两个组件: ng g component relations/footer (子组件) ng g component relations/home (父组件) 2:引用 在app.component.html中引用home标签:<app-home></app-home> 在hom 阅读全文
摘要:
1:在新项目中,新增 dom-operaiton 和 sub-dom 两个组件,并且 sub-dom放入 dom-operation中 ng g component components/dom-operaiton ng g component components/sub-dom 在 dom-op 阅读全文
摘要:
1:使用vscode打开事先准备好的空项目 2:创建表单组件:ng g component components/form 3:在app.component.html中引用该标签:<app-form></app-form> 4:引用表单组件,才能实现双向绑定,在app.module.ts里面: im 阅读全文