src/app/about/about.component.ts
The about component
Display some text with links for details about TodoMVC & Compodoc.
OnInit
HostDirectives |
DoNothingDirective
|
providers |
EmptyService
|
selector | about |
templateUrl | ./about.component.html |
Methods |
HostListeners |
mouseup |
mouseup()
|
Defined in src/app/about/about.component.ts:24
|
HostListener mouseup description |
ngOnInit |
ngOnInit()
|
Defined in src/app/about/about.component.ts:18
|
Returns :
void
|
onMouseup |
onMouseup()
|
Decorators :
@HostListener('mouseup')
|
Defined in src/app/about/about.component.ts:24
|
HostListener mouseup description
Returns :
void
|
import { Component, OnInit, HostListener } from '@angular/core';
import { EmptyService } from '../shared/services/empty.service';
import { DoNothingDirective } from '../shared/directives/do-nothing.directive';
/**
* The about component
*
* Display some text with links for details about TodoMVC & Compodoc.
*/
@Component({
selector: 'about',
templateUrl: './about.component.html',
providers: [EmptyService],
hostDirectives: [DoNothingDirective],
})
export class AboutComponent implements OnInit {
ngOnInit() {}
/**
* HostListener mouseup description
*/
@HostListener('mouseup')
onMouseup(): void {}
}
<p>
This application is a <a [routerLink]="['todomvc']">TodoMVC</a> example written using Angular, with code documented, and ready for <a [routerLink]="['compodoc']">compodoc</a>.
</p>
<router-outlet></router-outlet>