Angular 1.1 创建组件,并进行数据绑定[单向,双向]

1.创建名为heroes的组件。 运行命令:ng generate component heroes 可以看到新的组件已经创建成功,heroes文件夹中,已有四个文件。 heroes.component.css  样式文件 heroes.component.html  页面文件 heroes.component.spec.ts  单元测试文件 heroes.component.ts  逻辑文件 这
相关文章
相关标签/搜索