Skip to content

Instantly share code, notes, and snippets.

@yjaaidi
Last active May 30, 2018 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yjaaidi/61ed49986ffeb1e89d139bdcb95a14cb to your computer and use it in GitHub Desktop.
Save yjaaidi/61ed49986ffeb1e89d139bdcb95a14cb to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { interval } from 'rxjs';
@Component({
template: `<div>{{ count$ | async }}</div>`
})
export class CounterComponent {
count$ = interval(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment