src/app/app.component.ts
The main component
| selector | app-root |
| styleUrls | ./app.component.css |
| templateUrl | ./app.component.html |
Methods |
|
| Public getOrganizations |
getOrganizations()
|
|
Defined in src/app/app.component.ts:12
|
|
Returns :
Observable<Todo[]>
|
| Public getProperty | |||||||||
getProperty(obj: T, key: K)
|
|||||||||
|
Defined in src/app/app.component.ts:16
|
|||||||||
Type parameters :
|
|||||||||
|
Parameters :
Returns :
T[K]
|
| Public openSomeDialog | ||||||||||||
openSomeDialog(model, grid, callback: () => void)
|
||||||||||||
|
Defined in src/app/app.component.ts:20
|
||||||||||||
|
Parameters :
Returns :
void
|
import { Component } from '@angular/core';
/**
* The main component
*/
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
public getOrganizations(): Observable<Todo[]> {
console.log('yo');
}
public getProperty<T, K extends keyof T>(obj: T, key: K) {
return obj[key];
}
public openSomeDialog(model, grid, callback: ({ index }) => {}): void {}
}
<router-outlet></router-outlet>
<p class="info links">
<a routerLink="/" routerLinkActive="active">Home</a>
|
<a routerLink="/about" routerLinkActive="active">About</a>
</p>
./app.component.css
.links a {
font-size: 14px;
}