Components
Component selector names(Style 05-02)
@Component({
selector: 'wm-hero-button',
templateUrl: './hero-button.component.html'
})
export class HeroButtonComponent { }Components as elements (Style 05-03)
<!--ToHeroButton is not a component, it could be a directive!-->
<div toHeroButton />Extract templates and styles to their own files (Style 05-04)
Decorate input and output properties (Style 05-12)
Member sequence (Style 05-14)
Delegate complex component logic to services (Style 05-15)
Don't prefix output properties
Put presentation log in the component class
Components library folders
Was this helpful?