mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
18 lines
397 B
TypeScript
18 lines
397 B
TypeScript
import { Component } from '@angular/core';
|
|
import { Store, select } from '@ngrx/store';
|
|
import { Observable } from 'rxjs';
|
|
|
|
@Component({
|
|
selector: 'minimal-example',
|
|
template: `
|
|
<div>{{ value$ | async }}</div>
|
|
`
|
|
})
|
|
export class MinimalExampleComponent {
|
|
value$: Observable<any>;
|
|
|
|
constructor(private store: Store<any>) {
|
|
this.value$ = this.store.pipe(select('someSlice'));
|
|
}
|
|
}
|