File

test/fixtures/sample-files/bar.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(internalConstructorProp: string)
Parameters :
Name Type Optional
internalConstructorProp string No

Inputs

internalInput
Type : string

Methods

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 :
Name Type Optional
index unknown No
Returns : void

Properties

Public internalConstructorProp
Type : string
Default value : ''
Protected varprotected
Type : string
import { Component, OnInit, Input } from '@angular/core';
import { BarService } from './bar.service';

@Component({
    selector: 'app-bar',
    templateUrl: `bar.template.html`,
    styleUrls: ['bar.style.scss', 'bar2.style.scss'],
    providers: [BarService]
})
export class BarComponent implements OnInit {
    /**
     * foo method
     */
    normalMethod() {}

    /**
     * bar method
     * @internal
     */
    internalMethod() {}

    /**
     * @hidden
     */
    hiddenMethod() {}

    /**
     * @internal
     */
    @Input() internalInput: string;

    /**
     * @private
     */
    privateCommentMethod() {}

    private privateMethod() {}

    protected varprotected: string;

    constructor(
        /**
         * @internal
         */
        public internalConstructorProp: string = ''
    ) {}

    ngOnInit() {}

    public showTab(index) {
        // TOTO
    }
}
<div class="host">
    <div>Bar</div>
</div>

bar.style.scss

:host {
  h1 {
    background: red;
  }
}

bar2.style.scss

:host {
  .some-class {
    background: blue;
  }
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""