As I mentioned in my last post, Angular components are decorated with decorator metadata (@Component). The component decorator is a function that takes an object as a parameter. In the decorator, we can set various property values to create the desired component behavior. The properties used most often are…
- template – inline html view
- templateUrl – external html view
- providers – services
- styles – inline css/scss
- styleUrls – external css/scss
- selector – custom tag element to use
There are others, but these are used mostly. We will explore these in a future post…(how’s that for a cliffhanger? Ok…not a cliffhanger, but some good stuff coming)
Happy Coding!
Clay Hess