2018-12-10创建基础组件

1. 使用angular cli创建组件

ng g component navbar
ng g component stars
ng g component product
ng g component search
ng g component carousel
ng g component footer

都能看到如下这样,就是生成成功了

CREATE src/app/stars/stars.component.html (24 bytes)
CREATE src/app/stars/stars.component.spec.ts (621 bytes)
CREATE src/app/stars/stars.component.ts (265 bytes)
CREATE src/app/stars/stars.component.css (0 bytes)
UPDATE src/app/app.module.ts (1251 bytes)

2. 在app.component.html中构建基础布局框架


3.navbar.component.html


4. footer.component.html


这是页脚

5. search.component.html

6. carsouel.component.html


7. product.component.html

xxx

yyy

zzzz

你可能感兴趣的:(2018-12-10创建基础组件)