bar.component.ts 894 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { Component, OnInit, Input } from '@angular/core';
  2. import { BarService } from './bar.service';
  3. @Component({
  4. selector: 'app-bar',
  5. templateUrl: `bar.template.html`,
  6. styleUrls: ['bar.style.scss', 'bar2.style.scss'],
  7. providers: [BarService]
  8. })
  9. export class BarComponent implements OnInit {
  10. /**
  11. * foo method
  12. */
  13. normalMethod() {}
  14. /**
  15. * bar method
  16. * @internal
  17. */
  18. internalMethod() {}
  19. /**
  20. * @hidden
  21. */
  22. hiddenMethod() {}
  23. /**
  24. * @internal
  25. */
  26. @Input() internalInput: string;
  27. /**
  28. * @private
  29. */
  30. privateCommentMethod() {}
  31. private privateMethod() {}
  32. protected varprotected: string;
  33. constructor(
  34. /**
  35. * @internal
  36. */
  37. public internalConstructorProp: string = ''
  38. ) {}
  39. ngOnInit() {}
  40. public showTab(index) {
  41. // TOTO
  42. }
  43. }