Skip to content

Instantly share code, notes, and snippets.

@arturovt
Created February 28, 2021 02:08
Show Gist options
  • Save arturovt/7b4b971e6a9703de40eb268d812625d5 to your computer and use it in GitHub Desktop.
Save arturovt/7b4b971e6a9703de40eb268d812625d5 to your computer and use it in GitHub Desktop.
class ArticleComponent {
constructor(t, e, o, n, r) {
this.article$ = e.params.pipe(
Object(l.a)(t => {
const e = Object(i.e)(`article:${t.id}`);
return r.get(e, null);
}),
);
}
}
ArticleComponent.ɵfac = function (t) {
return new (t || ArticleComponent)(c.Db(u.a), c.Db(r.a), c.Db(c.C), c.Db(i.c), c.Db(i.d));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment