| Start |
|---|
| A simple component To create a component we add
There are other parameters you can configure, but the listed ones are what you will use the most. A simple example: |
| Templates & Styles Templates are HTML files that may contain logic. You can specify a template in two ways: Passing template as a file pathPassing a template as an inline codeTemplates may contain styles. The styles declared in All The generated code will look like this: You can add styles to a component in two ways: Passing an array of file pathsPassing an array of inline codesYou shouldn't use |
| Testing a Component hero.component.html hero.component.ts hero.component.spec.ts |
| Nesting components Components will render in their respective If you have a component that shows a message: You can use it inside another component using |
Read Article
https://develop.horje.com/learn/1434/reference