test/fixtures/sample-files/bar.component.ts
OnInit
| providers |
BarService
|
| selector | app-bar |
| styleUrls | bar.style.scss, |
| templateUrl | bar.template.html |
Properties |
|
Methods |
|
Inputs |
constructor(internalConstructorProp: string)
|
||||||
|
Parameters :
|
| internalInput |
Type : string
|
| internalMethod |
internalMethod()
|
|
bar method
Returns :
void
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| normalMethod |
normalMethod()
|
|
foo method
Returns :
void
|
| privateCommentMethod |
privateCommentMethod()
|
|
Returns :
void
|
| Private privateMethod |
privateMethod()
|
|
Returns :
void
|
| Public showTab | ||||||
showTab(index: unknown)
|
||||||
|
Parameters :
Returns :
void
|
| Public internalConstructorProp |
Type : string
|
Default value : ''
|
| Protected varprotected |
Type : string
|
<div class="host">
<div>Bar</div>
</div>
bar.style.scss
:host {
h1 {
background: red;
}
}
bar2.style.scss
:host {
.some-class {
background: blue;
}
}